diff --git a/core/interface/gui.py b/core/interface/gui.py index ccf9e01..e5e19c2 100644 --- a/core/interface/gui.py +++ b/core/interface/gui.py @@ -45,7 +45,7 @@ def download_update(latest_version): new_filename = f"SoftwareManager-dev-{latest_version.replace('-dev', '')}-windows.exe" url = f"https://github.com/KeksPirates/SoftwareManager/releases/latest/download/SoftwareManager-dev-{latest_version.replace('-dev', '')}-windows.exe" - consoleLog("Downloading update...") + consoleLog("Downloading update...", True) response = r.get(url, allow_redirects=True) with open(new_filename, "wb") as f: f.write(response.content) diff --git a/core/utils/general/logs.py b/core/utils/general/logs.py index 3f64728..5fe7eea 100644 --- a/core/utils/general/logs.py +++ b/core/utils/general/logs.py @@ -165,7 +165,7 @@ def set_main_window(window): global _main_window _main_window = window -def consoleLog(text): +def consoleLog(text, printAnyways = False): now = datetime.now() current_time = now.strftime("%H:%M:%S") @@ -175,5 +175,5 @@ def consoleLog(text): except Exception: pass - if state.debug: + if state.debug or printAnyways: print(f"[{current_time}] {text}") \ No newline at end of file