mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-19 17:45:21 -04:00
plugins: add support for composite plugins
- single plugin can register multiple types - e.g. daemon, bar widget, desktop widget
This commit is contained in:
@@ -21,8 +21,7 @@ Singleton {
|
||||
Connections {
|
||||
target: PluginService
|
||||
function onPluginLoaded(pluginId) {
|
||||
const plugin = PluginService.availablePlugins[pluginId];
|
||||
if (plugin?.type === "desktop")
|
||||
if (PluginService.pluginDesktopComponents[pluginId] !== undefined)
|
||||
syncPluginWidgets();
|
||||
}
|
||||
function onPluginUnloaded(pluginId) {
|
||||
|
||||
Reference in New Issue
Block a user