Skip to content

Commit

Permalink
Restart flyouts after hardware change or resuming from sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Sep 25, 2024
1 parent ed876a6 commit 4bae364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,7 @@ function handleMonitorChange(t, e, d) {
handleBackgroundUpdate(true) // Apply Time Of Day Adjustments

// If displays not shown, refresh mainWindow
//restartPanel(panelSize.visible)
if(!panelSize.visible) restartPanel();

handleChangeTimeout2 = false
}, parseInt(settings.hardwareRestoreSeconds || 5) * 1000)
Expand All @@ -3653,7 +3653,7 @@ powerMonitor.on("resume", () => {
recreateTray()
if (!settings.disableAutoRefresh) refreshMonitors(true).then(() => {
if (!settings.disableAutoApply) setKnownBrightness();
//restartPanel()
if(!panelSize.visible) restartPanel();

// Check if time adjustments should apply
applyCurrentAdjustmentEvent(true, false)
Expand Down

0 comments on commit 4bae364

Please sign in to comment.