mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-01-26 01:46:14 +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