OSDN Git Service

RAD-152: Follow option in avatar dropdown mislabeled when already following someone
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 25 Apr 2010 03:28:05 +0000 (03:28 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 25 Apr 2010 03:28:05 +0000 (03:28 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@587 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/ChatConsole.cs

index f0a0267..1eb5f4f 100644 (file)
@@ -560,10 +560,16 @@ namespace Radegast
             Avatar av = currentAvatar;
             if (av == null) return;
 
-            if (instance.State.FollowName != av.Name)
+            if (instance.State.FollowName == string.Empty)
+            {
                 instance.State.Follow(av.Name);
+                ctxFollow.Text = "Unfollow " + av.Name;
+            }
             else
+            {
                 instance.State.Follow(string.Empty);
+                ctxFollow.Text = "Follow";
+            }
         }
 
         private void ctxPoint_Click(object sender, EventArgs e)