Gate plugins in private profiles

This commit is contained in:
2026-05-09 00:44:15 -04:00
parent 7797203bbf
commit 96732c8932
8 changed files with 236 additions and 31 deletions
+17
View File
@@ -170,6 +170,23 @@ impl ElyShell {
cx.notify();
}
pub(super) fn set_plugin_private_window_allowed(
&mut self,
plugin_id: PluginId,
allowed: bool,
cx: &mut Context<Self>,
) {
let result = match &mut self.state {
ShellState::Ready(core) => core
.set_plugin_private_window_allowed(&plugin_id, allowed)
.map_err(|error| error.to_string()),
ShellState::StartupError(message) => Err(message.clone()),
};
self.plugin_install_error = result.err();
cx.notify();
}
fn uninstall_plugin(&mut self, plugin_id: PluginId, cx: &mut Context<Self>) {
let result = match &mut self.state {
ShellState::Ready(core) => PluginPackageStore::application()