OSDN Git Service

Remove the button from the tools menu on unload if we ever decide to remove plugins...
authorLatif Khalifa <latifer@streamgrid.net>
Fri, 28 Aug 2009 18:09:15 +0000 (18:09 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Fri, 28 Aug 2009 18:09:15 +0000 (18:09 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@172 f7a694da-4d33-11de-9ad6-1127a62b9fcd

plugins/Radegast.Plugin.Alice/Alice.cs

index 48a93ea..c071518 100644 (file)
@@ -96,6 +96,9 @@ namespace Radegast.Plugin.Alice
 \r
         public void StopPlugin(RadegastInstance Instance)\r
         {\r
+            // Remove the menu button\r
+            Instance.MainForm.ToolsMenu.DropDownItems.Remove(MenuButton);\r
+\r
             // Unregister events\r
             Client.Self.OnChat -= new AgentManager.ChatCallback(Self_OnChat);\r
             Client.Self.OnInstantMessage -= new AgentManager.InstantMessageCallback(Self_OnInstantMessage);\r