mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 19:27:13 +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
|
||||
case 2:
|
||||
return False
|
||||
# NOTE: no other known values at this time
|
||||
case _:
|
||||
return True
|
||||
|
||||
|
||||
@ -55,8 +55,11 @@ class ConfigManager:
|
||||
self.update_config(Preferences.IP_LIST, ips)
|
||||
|
||||
def update_history_file(self, fqip: str) -> None:
|
||||
with open(self.prefs.paths.history, "r") as f:
|
||||
ips = [line.rstrip() for line in f.readlines()]
|
||||
try:
|
||||
with open(self.prefs.paths.history, "r") as f:
|
||||
ips = [line.rstrip() for line in f.readlines()]
|
||||
except FileNotFoundError:
|
||||
ips = []
|
||||
|
||||
seen = set()
|
||||
ips.append(fqip)
|
||||
|
||||
@ -60,7 +60,7 @@ class ModManager:
|
||||
|
||||
@call_on_thread(dialogs.fetching_mods)
|
||||
def load_mods(self) -> None:
|
||||
mods = get_delimited_mods(self.path)
|
||||
mods = get_delimited_mods(Path(self.path))
|
||||
if len(mods) < 1:
|
||||
msg = self.format_mod_statusbar()
|
||||
func = StoredFunc(lambda: self.emitter.emit("mods_updated", msg, 0))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user