------------------------------------------------------------ revno: 24 committer: poy <p...@123gen.com> branch nick: ChatPlugin timestamp: Mon 2013-05-13 19:48:39 +0200 message: forgot to remove the config command modified: src/Plugin.cpp
-- lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/ChatPlugin https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/ChatPlugin Your team Dcplusplus-team is subscribed to branch lp:~dcplusplus-team/dcpp-plugin-sdk-cpp/ChatPlugin. To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcpp-plugin-sdk-cpp/ChatPlugin/+edit-subscription
=== modified file 'src/Plugin.cpp' --- src/Plugin.cpp 2013-05-13 17:30:42 +0000 +++ src/Plugin.cpp 2013-05-13 17:48:39 +0000 @@ -40,17 +40,11 @@ using dcapi::UI; using dcapi::Util; -string commandName = PLUGIN_NAME ": Configure"; - Plugin::Plugin() { } Plugin::~Plugin() { Hooks::clear(); - - if(UI::handle()) { - UI::removeCommand(commandName); - } } Plugin* instance; @@ -109,7 +103,6 @@ // Start the plugin logic here; add hooks with functions from the Hooks interface. loadConfig(); Hooks::UI::onChatTags([this](UserDataPtr user, TagDataPtr tags, bool&) { return onChatTags(user, tags); }); - UI::addCommand(commandName, [this] { onConfigure(); }, Config::getInstallPath() + "ChatPlugin.ico"); return true; }
_______________________________________________ Mailing list: https://launchpad.net/~linuxdcpp-team Post to : linuxdcpp-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~linuxdcpp-team More help : https://help.launchpad.net/ListHelp