Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
9d8e36aa by wurstsalat at 2025-07-08T20:06:30+02:00
perf: Preferences: Load plugin manifests in idle fashion to avoid blocking the
UI
- - - - -
1 changed file:
- gajim/gtk/plugins.py
Changes:
=====================================
gajim/gtk/plugins.py
=====================================
@@ -75,9 +75,6 @@ def __init__(self) -> None:
self.set_description(description_text)
self.set_header_suffix(self._file_chooser_button)
- self._load_installed_manifests()
- self._load_repository_manifests()
-
self.register_events(
[
("plugin-removed", ged.GUI1, self._on_plugin_removed),
@@ -92,6 +89,10 @@ def __init__(self) -> None:
"plugin-updates-available", self._on_plugin_updates_available
)
+ # Load manifests in idle fashion, since it blocks the UI
+ GLib.idle_add(self._load_installed_manifests)
+ GLib.idle_add(self._load_repository_manifests)
+
def do_unroot(self) -> None:
self._disconnect_all()
app.plugin_repository.disconnect(self)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9d8e36aa29bd53df1d0c5eef8ac9b7795b7ade9b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9d8e36aa29bd53df1d0c5eef8ac9b7795b7ade9b
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]