mirror of
https://github.com/aclist/dztui.git
synced 2026-11-11 20:40:38 +01:00
fix: update table checkmarks when mods are synched (#370)
This commit is contained in:
1 parent
9225f3bc06
commit
ed20a7cc84
3 files changed
+17
-2
No files matched your search
@@ -13,6 +13,7 @@ from gi.repository import Gtk, GLib, Gdk, Pango # noqa
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from dzgui.controllers.mc import Controller
|
||||
from dzgui.controllers.emitter import Emitter
|
||||
|
||||
|
||||
class ServerModTreeView(ContextMixin, TreeView): # type: ignore
|
||||
@@ -48,6 +49,10 @@ class ServerModTreeView(ContextMixin, TreeView): # type: ignore
|
||||
case _:
|
||||
pass
|
||||
|
||||
def mark_mods_synched(self) -> None:
|
||||
for row in self.mod_store:
|
||||
row[2] = server_mods.checkmark
|
||||
|
||||
# TODO: could be problematic if user downloads mods out of band
|
||||
def _on_row_activated(
|
||||
self,
|
||||
|
||||
Reference in new issue
Block a user