mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-30 17:09:36 +00:00
Fix autostart setting verbisity flag to zero
This commit is contained in:
10
gui.py
10
gui.py
@@ -1686,12 +1686,12 @@ class SettingsPanel:
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user