mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
chore: move map count test to pre-config
This commit is contained in:
parent
b31896387a
commit
120703e702
@ -21,6 +21,7 @@ from dzgui.strings import boot
|
||||
from dzgui.util.deck import is_steam_deck, is_game_mode
|
||||
from dzgui.util.dirs import make_parents
|
||||
from dzgui.util.localize import set_locale
|
||||
from dzgui.util.map_count import test_map_count
|
||||
from dzgui.util.redact import RedactionFilter, REDACTION_PATTERNS
|
||||
from dzgui.util.strings import init
|
||||
|
||||
@ -118,6 +119,7 @@ def load_gui(version: str, is_debug: bool) -> None:
|
||||
del os.environ["GTK_IM_MODULE"]
|
||||
|
||||
if has_new_config(XDG.config) is False:
|
||||
test_map_count()
|
||||
migrate_cols_file(XDG.columns)
|
||||
copy_state_files(xdg_paths["XDG_STATE_HOME"])
|
||||
# TODO: add logging inside wizard
|
||||
|
||||
@ -5,7 +5,7 @@ import warnings
|
||||
from dzgui.const.constants import APP_NAME
|
||||
from dzgui.init.libgi import test_libgi_missing
|
||||
from dzgui.init.prefix import get_version
|
||||
from dzgui.util.map_count import set_map_count, test_map_count
|
||||
from dzgui.util.map_count import set_map_count
|
||||
from dzgui.util.strings import flags
|
||||
|
||||
parser = argparse.ArgumentParser(description=flags.description)
|
||||
@ -39,7 +39,6 @@ def main() -> None:
|
||||
set_map_count()
|
||||
sys.exit(0)
|
||||
|
||||
test_map_count()
|
||||
version = get_version()
|
||||
|
||||
print(f"{APP_NAME} {version}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user