mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 23:22:44 +01:00
This commit is contained in:
1 parent
8503d7e698
commit
401c8625ad
2 files changed
+12
-4
No files matched your search
+1
-4
@@ -122,10 +122,7 @@ def get_missing_mods(local: list, remote: list) -> list:
|
|||||||
def _hash(uid: str, use_custom: bool = False) -> str:
|
def _hash(uid: str, use_custom: bool = False) -> str:
|
||||||
md5 = hashlib.md5()
|
md5 = hashlib.md5()
|
||||||
md5.update(uid.encode("ascii"))
|
md5.update(uid.encode("ascii"))
|
||||||
if use_custom:
|
prefix = "@C" if use_custom else "@"
|
||||||
prefix = "@C"
|
|
||||||
else:
|
|
||||||
prefix = "@"
|
|
||||||
return prefix + md5.hexdigest()[:8]
|
return prefix + md5.hexdigest()[:8]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,13 @@ class ModFrame(HeadingFrame):
|
|||||||
sel = self.tree.get_selection()
|
sel = self.tree.get_selection()
|
||||||
sel.connect("changed", self._on_selection_changed)
|
sel.connect("changed", self._on_selection_changed)
|
||||||
|
|
||||||
|
# TODO: warnings area
|
||||||
|
# valid warnings (one at a time):
|
||||||
|
# - name collision within custom mods
|
||||||
|
# - name collision b/w custom and local (permissible)
|
||||||
|
# - no mods
|
||||||
|
# - not a valid mission
|
||||||
|
|
||||||
def get_mods(self) -> list[str]:
|
def get_mods(self) -> list[str]:
|
||||||
model = self.tree.get_model()
|
model = self.tree.get_model()
|
||||||
if model is None:
|
if model is None:
|
||||||
@@ -295,6 +302,10 @@ class OfflineLoader(Gtk.Box):
|
|||||||
self.add(self.button_box)
|
self.add(self.button_box)
|
||||||
|
|
||||||
def _on_mission_clicked(self, button: Gtk.Button) -> None:
|
def _on_mission_clicked(self, button: Gtk.Button) -> None:
|
||||||
|
# process path, cf. set_custom_folder()
|
||||||
|
# file = path / "init.c"
|
||||||
|
# if not file.exists():
|
||||||
|
# pop warning
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def parse_mods(self) -> None:
|
def parse_mods(self) -> None:
|
||||||
|
|||||||
Reference in new issue
Block a user