mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
add setting to ignore updates on windows
This commit is contained in:
@@ -7,7 +7,7 @@ def create_config():
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
config["General"] = {"debug": True, "api_url": f"{state.api_url}", "aria2_threads": f"{state.aria2_threads}", "download_path": f"{state.download_path}", f"speed_limit": f"{state.speed_limit}",
|
||||
"version": f"{state.version}"}
|
||||
"version": f"{state.version}", "ignore_updates": f"{state.ignore_updates}"}
|
||||
|
||||
if platform.system() == "Windows":
|
||||
config_dir = os.environ.get("APPDATA", os.path.expanduser("~\\AppData\\Roaming"))
|
||||
@@ -43,3 +43,4 @@ def read_config():
|
||||
state.download_path = config.get("General", "download_path")
|
||||
state.speed_limit = config.getint("General", "speed_limit")
|
||||
state.version = config.get("General", "version")
|
||||
state.ignore_updates = config.getboolean("General", "ignore_updates")
|
||||
|
||||
Reference in New Issue
Block a user