feat: use concurrency for stale mods

This commit is contained in:
aclist committed 2026-02-13 20:41:09 +09:00
1 parent 85cbd2d183
commit b14c63b23c
4 files changed
+24 -15

No files matched your search

+2 -1
View File
@@ -596,6 +596,7 @@ class Controller(GObject.GObject):
it = mod.iter
path = model.get_path(it)
# TODO: consider storing in ListStore as int
# TODO: clone existing model and set outside of thread
if int(mod[2]) in stale:
model[path][4] = HEX_RED
@@ -731,7 +732,7 @@ class Controller(GObject.GObject):
func = self.get_callback()
self.mediator.window.set_sensitive(True)
# TODO: spawn error dialog if API crawl failed
# most likely going to drop this
# most likely going to drop callback method
if func is not None:
args = self.get_callback_args()
GLib.idle_add(func, *args)