Skip to content

Commit

Permalink
Fix Mica effect not showing unless already set to Win11/enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Nov 24, 2024
1 parent 657101e commit 6476eac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,10 @@ function processSettings(newSettings = {}, sendUpdate = true) {
if (newSettings.useAcrylic !== undefined) {
lastTheme["UseAcrylic"] = newSettings.useAcrylic
sendToAllWindows('theme-settings', lastTheme)
sendMicaWallpaper()
if(newSettings.useAcrylic) {
currentWallpaperTime = false
sendMicaWallpaper()
}
doRestartPanel = true
}

Expand Down Expand Up @@ -4465,8 +4468,7 @@ ipcMain.on('mica-wallpaper-same', (event, data) => {
})

async function sendMicaWallpaper() {
// Skip if Win10 or Mica disabled
if (!settings?.useAcrylic || !settings?.isWin11 || !mainWindow) return false;
if (!mainWindow) return false;
checkMicaWallpaper()
}

Expand Down

0 comments on commit 6476eac

Please sign in to comment.