PluginSystem: first pass on auto update

This commit is contained in:
ItsLemmy
2025-12-05 17:25:46 -05:00
parent 08fc3d4f8c
commit 36cd59b08d
3 changed files with 212 additions and 1 deletions
+14
View File
@@ -128,6 +128,20 @@ ShellRoot {
PluginService.pluginContainer = pluginContainer;
}
}
// Listen for when available plugins are fetched, then check for updates
Connections {
target: PluginService
property bool hasCheckedOnStartup: false
function onAvailablePluginsUpdated() {
// Only check once on startup, after first plugin list is fetched
if (!hasCheckedOnStartup && Object.keys(PluginService.activeFetches).length === 0) {
hasCheckedOnStartup = true;
PluginService.checkForUpdates();
}
}
}
}
}