mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 14:12:45 +01:00
feat: preconnect dialog warnings (WIP)
This commit is contained in:
1 parent
7523bffbd8
commit
e2022fdee7
9 files changed
+256
-107
No files matched your search
+7
-2
@@ -6,14 +6,19 @@ from dzgui.views.dialogs.early_alert import EarlyAlertDialog
|
||||
from dzgui.util.strings import init
|
||||
|
||||
|
||||
def is_dayz_running() -> None:
|
||||
# TODO: simplify
|
||||
def is_dayz_running(dialog: bool = False) -> None:
|
||||
if dialog is False:
|
||||
return is_running(DAYZ_BINARY)
|
||||
if is_running(DAYZ_BINARY) is True:
|
||||
EarlyAlertDialog(init.is_dayz_running)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def is_steam_running() -> None:
|
||||
def is_steam_running(dialog: bool = False) -> None:
|
||||
# TODO: check proc name of flatpak steam
|
||||
if dialog is False:
|
||||
return is_running(STEAM_CMD)
|
||||
if is_running(STEAM_CMD) is False:
|
||||
EarlyAlertDialog(init.is_steam_running)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in new issue
Block a user