Explorar o código

UI: Fix tray icon showing up on startup even if off

Apparently certain versions of Qt have a bug where the tray icon's
internal "visible" variable is set to false despite the fact that it
still shows.  Calling show() first before calling hide() sets the
internal boolean value and fixes the issue with the hide call.
jp9000 %!s(int64=6) %!d(string=hai) anos
pai
achega
58ce89bbe9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      UI/window-basic-main.cpp

+ 1 - 0
UI/window-basic-main.cpp

@@ -6817,6 +6817,7 @@ void OBSBasic::SystemTrayInit()
 	trayMenu->addAction(sysTrayReplayBuffer);
 	trayMenu->addAction(exit);
 	trayIcon->setContextMenu(trayMenu);
+	trayIcon->show();
 
 	if (outputHandler && !outputHandler->replayBuffer)
 		sysTrayReplayBuffer->setEnabled(false);