Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Sep 6, 2024
1 parent afa1684 commit 6ba9114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
try:
utils.settings = settings.Settings(utils.SETTINGS_FILE_NAME)
utils.set_up()
if utils.settings.config['mud'].getboolean('ask_updates') and utils.check_updates():
sys.exit()
mud = Mud()
mud.run()
except KeyboardInterrupt:
Expand Down
3 changes: 3 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def set_up():
global GLYPHS
GLYPHS = ICON_GLYPHS if settings.mud_settings['nerd_fonts'] else TEXT_GLYPHS

if settings.config['mud'].getboolean('ask_updates') and check_updates():
sys.exit()


def check_updates(explicit: bool = False) -> bool:
target_directory = os.curdir
Expand Down

0 comments on commit 6ba9114

Please sign in to comment.