Skip to content

Commit

Permalink
Merge pull request #1731 from henkdegroot/Win-Click-Server-Tray
Browse files Browse the repository at this point in the history
Add Single Click on Win OS Server System Tray Icon
  • Loading branch information
ann0see authored Jun 4, 2021
2 parents d6acd63 + 790cc98 commit c5ba362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/serverdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,13 @@ void CServerDlg::OnClearRecordingDirClicked()

void CServerDlg::OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason )
{
// on double click on the icon, show window in fore ground
#ifdef _WIN32
// on single or double click on the icon, show window in foreground for windows only
if ( ActReason == QSystemTrayIcon::Trigger || ActReason == QSystemTrayIcon::DoubleClick )
#else
// on double click on the icon, show window in foreground for all
if ( ActReason == QSystemTrayIcon::DoubleClick )
#endif
{
ShowWindowInForeground();
}
Expand Down
1 change: 1 addition & 0 deletions src/serverdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class CServerDlg : public CBaseDlg, private Ui_CServerDlgBase
{
showNormal();
raise();
activateWindow();
}
void ModifyAutoStartEntry ( const bool bDoAutoStart );
void UpdateRecorderStatus ( QString sessionDir );
Expand Down

0 comments on commit c5ba362

Please sign in to comment.