Skip to content
Snippets Groups Projects
Commit 7c3b7fc2 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann
Browse files

now there are hotkeys

parent 6fd223ee
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment