Skip to content

Commit

Permalink
Merge pull request #389 from ZIMkaRU/feature/show-native-notification…
Browse files Browse the repository at this point in the history
…-with-multiple-workspaces-mode-in-ubuntu

Show native notifications with multiple workspaces mode in Ubuntu/Mac
  • Loading branch information
ezewer authored Aug 5, 2024
2 parents 3008f15 + d65faf0 commit 9ad4c9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/manage-worker-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ad4c9e

Please sign in to comment.