ipc: new "call plugin openSettings {id}"

This commit is contained in:
Lemmy
2026-01-27 08:55:45 -05:00
parent 3e1f371912
commit c4a737a396
+18
View File
@@ -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);
});
}
}
}