Skip to content
Permalink
Browse files

Drop minimize functionality from tray icon.

Always just give focus to mumble when the tray icon is clicked
instead of trying (and failing) to replicate task bar entry
functionality. This is much more in line with how other programs
use the tray icon.
  • Loading branch information...
hacst committed Oct 4, 2014
1 parent bf5693b commit 06d9f7e6d0ab6081393d4169a10de7ad84010cc3
Showing with 4 additions and 9 deletions.
  1. +4 −9 src/mumble/MainWindow.cpp
@@ -2694,15 +2694,10 @@ void MainWindow::on_Icon_activated(QSystemTrayIcon::ActivationReason reason) {
case QSystemTrayIcon::Trigger:
case QSystemTrayIcon::DoubleClick:
case QSystemTrayIcon::MiddleClick:
if (isMinimized()) {
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
show();
raise();
activateWindow();
} else {
showMinimized();
}
break;
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
show();
raise();
activateWindow();
default: break;
}
}

2 comments on commit 06d9f7e

@Zuko

This comment has been minimized.

Copy link
Contributor

replied Oct 6, 2014

This "fix" isn't perfect. We talked about it on IRC.

@Kissaki

This comment has been minimized.

Copy link
Member

replied Mar 15, 2017

task bar entry functionality

I don't get what that means?

Please sign in to comment.
You can’t perform that action at this time.