mirror of
https://github.com/aclist/dztui.git
synced 2026-08-30 03:37:00 +02:00
Compare commits
5 Commits
33c4f6e526
...
a1f851430d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1f851430d | ||
|
|
aa43b017d1 | ||
|
|
fc86b75ca1 | ||
|
|
e92df8c062 | ||
|
|
494311e8df |
@ -344,6 +344,7 @@ def get_app_allows_downloads(path: Path, appid: int) -> bool:
|
|||||||
# NOTE: never allow
|
# NOTE: never allow
|
||||||
case 2:
|
case 2:
|
||||||
return False
|
return False
|
||||||
|
# NOTE: no other known values at this time
|
||||||
case _:
|
case _:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
@ -55,8 +55,11 @@ class ConfigManager:
|
|||||||
self.update_config(Preferences.IP_LIST, ips)
|
self.update_config(Preferences.IP_LIST, ips)
|
||||||
|
|
||||||
def update_history_file(self, fqip: str) -> None:
|
def update_history_file(self, fqip: str) -> None:
|
||||||
with open(self.prefs.paths.history, "r") as f:
|
try:
|
||||||
ips = [line.rstrip() for line in f.readlines()]
|
with open(self.prefs.paths.history, "r") as f:
|
||||||
|
ips = [line.rstrip() for line in f.readlines()]
|
||||||
|
except FileNotFoundError:
|
||||||
|
ips = []
|
||||||
|
|
||||||
seen = set()
|
seen = set()
|
||||||
ips.append(fqip)
|
ips.append(fqip)
|
||||||
|
|||||||
@ -60,7 +60,7 @@ class ModManager:
|
|||||||
|
|
||||||
@call_on_thread(dialogs.fetching_mods)
|
@call_on_thread(dialogs.fetching_mods)
|
||||||
def load_mods(self) -> None:
|
def load_mods(self) -> None:
|
||||||
mods = get_delimited_mods(self.path)
|
mods = get_delimited_mods(Path(self.path))
|
||||||
if len(mods) < 1:
|
if len(mods) < 1:
|
||||||
msg = self.format_mod_statusbar()
|
msg = self.format_mod_statusbar()
|
||||||
func = StoredFunc(lambda: self.emitter.emit("mods_updated", msg, 0))
|
func = StoredFunc(lambda: self.emitter.emit("mods_updated", msg, 0))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user