提交 58ce89bb 编写于 作者: J jp9000

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.
上级 d5708d65
...@@ -6817,6 +6817,7 @@ void OBSBasic::SystemTrayInit() ...@@ -6817,6 +6817,7 @@ void OBSBasic::SystemTrayInit()
trayMenu->addAction(sysTrayReplayBuffer); trayMenu->addAction(sysTrayReplayBuffer);
trayMenu->addAction(exit); trayMenu->addAction(exit);
trayIcon->setContextMenu(trayMenu); trayIcon->setContextMenu(trayMenu);
trayIcon->show();
if (outputHandler && !outputHandler->replayBuffer) if (outputHandler && !outputHandler->replayBuffer)
sysTrayReplayBuffer->setEnabled(false); sysTrayReplayBuffer->setEnabled(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册