mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 06:35:04 +08:00
#6522 Double clicking tray now shows GUI and tray also now has a tooltip
This commit is contained in:
@@ -263,6 +263,7 @@ void MainWindow::createTrayIcon()
|
||||
|
||||
m_pTrayIcon = new QSystemTrayIcon(this);
|
||||
m_pTrayIcon->setContextMenu(m_pTrayIconMenu);
|
||||
m_pTrayIcon->setToolTip("Synergy");
|
||||
|
||||
connect(m_pTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
|
||||
this, SLOT(trayActivated(QSystemTrayIcon::ActivationReason)));
|
||||
@@ -359,7 +360,6 @@ void MainWindow::setIcon(qSynergyState state)
|
||||
|
||||
void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
{
|
||||
#ifndef Q_OS_WIN
|
||||
if (reason == QSystemTrayIcon::DoubleClick)
|
||||
{
|
||||
if (isVisible())
|
||||
@@ -372,7 +372,6 @@ void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason)
|
||||
activateWindow();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void MainWindow::logOutput()
|
||||
|
||||
Reference in New Issue
Block a user