From 35c3e5b09d9e98cbe529f489039972a5b43cf59d Mon Sep 17 00:00:00 2001 From: Tianrun Qiu / Roderick Date: Tue, 17 Dec 2024 15:53:36 +0800 Subject: [PATCH] remove flash frame related --- main.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index aec880c..fdefd1a 100644 --- a/main.js +++ b/main.js @@ -162,7 +162,7 @@ function alarmSet() { resetAlarm = setTimeout(function () { if (store.get('alarmtip') !== false && isAlarmDialogClosed && isAlarmTipOn) { if (win != null) { - win.flashFrame(true); + // win.flashFrame(true); win.show(); app.focus(); isAlarmDialogClosed = false; @@ -1580,7 +1580,7 @@ function focusSolution() { if (hasFloating) floatingDestroyer("property-stay"); win.show(); win.center(); - win.flashFrame(true); + // win.flashFrame(true); if (!isLoose) win.setAlwaysOnTop(true, "screen-saver"); win.moveTop(); if (dockHide) app.dock.show();//prevent kiosk error, show in dock @@ -1623,7 +1623,7 @@ function nonFocusSolution(mode) { } else { win.show(); win.center(); - win.flashFrame(true); + // win.flashFrame(true); if (!isLoose) win.setAlwaysOnTop(true, "screen-saver"); win.moveTop(); } @@ -1768,7 +1768,7 @@ ipcMain.on('warning-giver-all-task-end', function () { isWorkMode = false; win.show(); win.center(); - win.flashFrame(true); + // win.flashFrame(true); win.setAlwaysOnTop(true, "screen-saver"); win.moveTop(); win.setProgressBar(-1); @@ -2479,4 +2479,4 @@ ipcMain.on("zoom-ratio-change", function (event, message) { win.setSize(Math.floor(360 * ratio), Math.floor(459 * ratio), true); settingsWin.setSize(Math.floor((isChinese ? 420 : 472) * ratio), Math.floor(636 * ratio), true); win.webContents.send('zoom-ratio-feedback'); -}) \ No newline at end of file +})