diff --git a/core/interface/gui.py b/core/interface/gui.py index 65c7a73..e8a6311 100644 --- a/core/interface/gui.py +++ b/core/interface/gui.py @@ -41,8 +41,8 @@ from core.network.aria2_integration import dlprogress print(os.path.abspath(__file__)) def download_update(latest_version): - old_filename = f"SoftwareManager-dev-{state.version}-windows.exe" - new_filename = f"SoftwareManager-dev-{latest_version}-windows.exe" + old_filename = f"SoftwareManager-dev-{latest_version.replace('-dev', '')}-windows.exe" + 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}-windows.exe" print("Downloading update...")