Skip to content

Commit

Permalink
Default disable hide in tray also for Windows 8
Browse files Browse the repository at this point in the history
* Can't use os_win.cpp versioning code as global settings singleton
  is initialized before os_init() routine populates variables.
* For now went with the option with least code impact. This should
  be revisited after release.
  • Loading branch information
hacst committed Jan 14, 2013
1 parent 8678a0c commit 6d67d07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mumble/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ Settings::Settings() {
aotbAlwaysOnTop = OnTopNever;
bAskOnQuit = true;
#ifdef Q_OS_WIN
// Don't enable minimize to tray by default on win7
bHideInTray = (QSysInfo::windowsVersion() != QSysInfo::WV_6_1);
// Don't enable minimize to tray by default on Windows 7 or Windows 8
const QSysInfo::WinVersion winVer = QSysInfo::windowsVersion();
bHideInTray = (winVer != QSysInfo::WV_WINDOWS7 && winVer != QSysInfo::WV_WINDOWS8);
#else
bHideInTray = true;
#endif
Expand Down

0 comments on commit 6d67d07

Please sign in to comment.