Aufgrund von Umarbeiten des s3 Storage wird es in GitLab, in nächster Zeit, mögliche Performance-Einbußen geben. Näheres dazu unter: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/43/show_ticket/6670

Commit 16bba6b8 authored by Carsten Fuhrmann's avatar Carsten Fuhrmann

show channellist on hot key,

close with right klick
parent 7c3b7fc2
......@@ -25,6 +25,8 @@ void ChannelTree::mousePressEvent(QMouseEvent * event)
{
if (event->button() == Qt::LeftButton)
isMouseDown = true;
else if (event->button() == Qt::RightButton)
m_parent->hide();
QTreeWidget::mousePressEvent(event);
}
......
......@@ -108,14 +108,12 @@ OverlayController* getController(uint64 serverConnectionHandlerID = 0)
{
OverlayController* ret = NULL;
for (auto &it : g_serverList.keys())
for (auto it : g_serverList.keys())
{
int tmp;
anyID ownID;
ts3Functions.getClientID(it, &ownID);
if (ts3Functions.getClientSelfVariableAsInt(ownID, CLIENT_IS_MUTED, &tmp) != ERROR_ok)
if (tmp == 0)
if (ts3Functions.getClientSelfVariableAsInt(it, CLIENT_INPUT_HARDWARE, &tmp) == ERROR_ok)
if (tmp == 1)
ret = g_serverList.find(it).value();
}
return ret;
......@@ -779,9 +777,11 @@ void ts3plugin_onHotkeyEvent(const char* keyword) {
if (QString(keyword) == "Channellist")
{
auto tmp = getController();
if (tmp != NULL)
tmp->debugPrint("WUHU");
auto controller = getController();
if (controller != NULL)
{
controller->displayChannelList();
}
}
}
......
......@@ -15,6 +15,8 @@
#define PLUGINS_EXPORTDLL __attribute__ ((visibility("default")))
#endif
#define BEEP Beep(512,500);
#ifdef __cplusplus
extern "C" {
#endif
......
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