We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db4cebe commit 03c7719Copy full SHA for 03c7719
1 file changed
windows.py
@@ -383,14 +383,9 @@ def run_tray() -> None:
383
384
385
def main() -> None:
386
- if mutex_result := _acquire_win_mutex() is False:
+ if (mutex_result := _acquire_win_mutex()) is False or mutex_result is None and not acquire_lock():
387
_show_info("Приложение уже запущено.", os.path.basename(sys.argv[0]))
388
return
389
- if mutex_result is None:
390
- log.warning("Named mutex unavailable, falling back to lock file")
391
- if not acquire_lock():
392
- _show_info("Приложение уже запущено.", os.path.basename(sys.argv[0]))
393
- return
394
395
try:
396
run_tray()
0 commit comments