mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
PluginSystem: first pass on auto update
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user