webpage commander: unhide commander window quickly when browser window is activated

This commit is contained in:
Kang Yu 2024-07-29 22:35:29 -07:00
parent e5194d8660
commit b1888cbf9b

View file

@ -823,10 +823,8 @@ namespace PersistentWindows.Common
if (!PersistentWindowProcessor.IsBrowserWindow(fgwnd)) if (!PersistentWindowProcessor.IsBrowserWindow(fgwnd))
{ {
if (browserWindowActivated) if (browserWindowActivated)
{
StartAliveTimer(6, 1000); StartAliveTimer(6, 1000);
return; else
}
Visible = false; Visible = false;
return; return;
} }
@ -880,7 +878,7 @@ namespace PersistentWindows.Common
{ {
// wait for possible menu selection within webpage // wait for possible menu selection within webpage
++totalWaitSecondsForWhiteColor; ++totalWaitSecondsForWhiteColor;
if (totalWaitSecondsForWhiteColor < 3) if (Visible && totalWaitSecondsForWhiteColor < 3)
{ {
StartAliveTimer(11, 1000); StartAliveTimer(11, 1000);
return; return;