mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
ipc: new "call plugin openSettings {id}"
This commit is contained in:
@@ -655,4 +655,22 @@ Item {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "plugin"
|
||||
function openSettings(key: string) {
|
||||
var manifest = PluginRegistry.getPluginManifest(key);
|
||||
if (!manifest) {
|
||||
Logger.w("IPC", "Plugin not found:", key);
|
||||
return;
|
||||
}
|
||||
if (!manifest.entryPoints?.settings) {
|
||||
Logger.w("IPC", "Plugin has no settings entry point:", key);
|
||||
return;
|
||||
}
|
||||
root.screenDetector.withCurrentScreen(screen => {
|
||||
BarService.openPluginSettings(screen, manifest);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user