Skip to content

Commit

Permalink
Fix autostart setting verbisity flag to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Jul 4, 2024
1 parent 38fd758 commit 18a0335
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,12 +1686,12 @@ def _get_self_path(self) -> str:

def _get_autostart_path(self) -> str:
flags: list[str] = [''] # this will add a space between self path and flags
# if non-zero, include the current logging level as well
if self._settings.logging_level > 0:
for lvl_idx, lvl_value in LOGGING_LEVELS.items():
if lvl_value == self._settings.logging_level:
# if applicable, include the current logging level as well
for lvl_idx, lvl_value in LOGGING_LEVELS.items():
if lvl_value == self._settings.logging_level:
if lvl_idx > 0:
flags.append(f"-{'v' * lvl_idx}")
break
break
if self._vars["tray"].get():
flags.append("--tray")
return self._get_self_path() + ' '.join(flags)
Expand Down

0 comments on commit 18a0335

Please sign in to comment.