mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
chore: add boilerplate
This commit is contained in:
1 parent
fbbf0d9e66
commit
d3e82fc4b1
4 files changed
+26
-15
No files matched your search
+2
-2
@@ -7,7 +7,7 @@ from dzgui.util.strings import init
|
||||
|
||||
|
||||
# TODO: simplify
|
||||
def is_dayz_running(dialog: bool = False) -> None:
|
||||
def is_dayz_running(dialog: bool = False) -> bool | None:
|
||||
if dialog is False:
|
||||
return is_running(DAYZ_BINARY)
|
||||
if is_running(DAYZ_BINARY) is True:
|
||||
@@ -15,7 +15,7 @@ def is_dayz_running(dialog: bool = False) -> None:
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def is_steam_running(dialog: bool = False) -> None:
|
||||
def is_steam_running(dialog: bool = False) -> bool | None:
|
||||
# TODO: check proc name of flatpak steam
|
||||
if dialog is False:
|
||||
return is_running(STEAM_CMD)
|
||||
|
||||
Reference in new issue
Block a user