mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-17 10:15:42 +00:00
Fix systray icon sometimes not appearing after login
This commit is contained in:
parent
53125ffeca
commit
71dcef8259
@ -212,6 +212,12 @@ namespace system_tray {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Wait for the shell to be initialized before registering the tray icon.
|
||||
// This ensures the tray icon works reliably after a logoff/logon cycle.
|
||||
while (GetShellWindow() == nullptr) {
|
||||
Sleep(1000);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (tray_init(&tray) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user