Commit 7c3b7fc2 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

now there are hotkeys

parent 6fd223ee
......@@ -107,11 +107,14 @@ OverlayController* getController(uint64 serverConnectionHandlerID = 0)
if (serverConnectionHandlerID == 0)
{
OverlayController* ret = NULL;
for (auto &it : g_serverList.keys())
{
int tmp;
anyID ownID;
ts3Functions.getClientID(it, &ownID);
if (ts3Functions.getClientSelfVariableAsInt(it, CLIENT_IS_MUTED, &tmp) != ERROR_ok)
if (ts3Functions.getClientSelfVariableAsInt(ownID, CLIENT_IS_MUTED, &tmp) != ERROR_ok)
if (tmp == 0)
ret = g_serverList.find(it).value();
}
......@@ -775,7 +778,11 @@ void ts3plugin_onHotkeyEvent(const char* keyword) {
printf("PLUGIN: Hotkey event: %s\n", keyword);
if (QString(keyword) == "Channellist")
getController()->debugPrint("WUHU");
{
auto tmp = getController();
if (tmp != NULL)
tmp->debugPrint("WUHU");
}
}
/* Called when recording a hotkey has finished after calling ts3Functions.requestHotkeyInputDialog */
......
......@@ -41,7 +41,7 @@ extern "C" {
PLUGINS_EXPORTDLL void ts3plugin_freeMemory(void* data);
PLUGINS_EXPORTDLL int ts3plugin_requestAutoload();
//PLUGINS_EXPORTDLL void ts3plugin_initMenus(struct PluginMenuItem*** menuItems, char** menuIcon);
//PLUGINS_EXPORTDLL void ts3plugin_initHotkeys(struct PluginHotkey*** hotkeys);
PLUGINS_EXPORTDLL void ts3plugin_initHotkeys(struct PluginHotkey*** hotkeys);
/* Clientlib */
PLUGINS_EXPORTDLL void ts3plugin_onConnectStatusChangeEvent(uint64 serverConnectionHandlerID, int newStatus, unsigned int errorNumber);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment