From d65faf02a0d324f223355a6d0f867ef210947a8e Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Fri, 2 Aug 2024 12:49:54 +0300 Subject: [PATCH] Show native notification with multiple workspaces mode in Ubuntu --- src/manage-worker-messages.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/manage-worker-messages.js b/src/manage-worker-messages.js index d269fb94..d94d9f16 100644 --- a/src/manage-worker-messages.js +++ b/src/manage-worker-messages.js @@ -242,7 +242,10 @@ module.exports = (ipc) => { state === PROCESS_MESSAGES.READY_TRX_TAX_REPORT || state === PROCESS_MESSAGES.ERROR_TRX_TAX_REPORT ) && - !wins?.mainWindow?.isVisible() + ( + !wins?.mainWindow?.isVisible() || + !wins?.mainWindow?.isFocused() + ) ) { const isError = state === PROCESS_MESSAGES.ERROR_TRX_TAX_REPORT const body = isError