XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(envision): Add plugin to config when enabled

This fixes not being able to enable plugins

Signed-off-by: Shiloh Fen <shiloh@shilohfen.com>

+27
+27
src/atomic-xr/patches/envision/0004-Add-plugin-to-config-when-enabled.patch
··· 1 + From c60988f04f85d4b46fd623ff77edb7e8267f8999 Mon Sep 17 00:00:00 2001 2 + From: Shiloh Fen <shiloh@shilohfen.com> 3 + Date: Sat, 6 Sep 2025 01:13:52 -0500 4 + Subject: [PATCH] Add plugin to config when enabled 5 + 6 + --- 7 + src/ui/plugins/store.rs | 4 ++++ 8 + 1 file changed, 4 insertions(+) 9 + 10 + diff --git a/src/ui/plugins/store.rs b/src/ui/plugins/store.rs 11 + index 17d1534..c8f989d 100644 12 + --- a/src/ui/plugins/store.rs 13 + +++ b/src/ui/plugins/store.rs 14 + @@ -413,6 +413,10 @@ impl AsyncComponent for PluginStore { 15 + self.set_locked(false); 16 + } 17 + Self::Input::SetEnabled(signal_sender, plugin, enabled) => { 18 + + // HACK: I'm sure there's a much better way to do this, but I'm not a Rust 19 + + // HACK: ...developer, and this seems to work fine. 20 + + self.add_plugin_to_config(&sender, plugin.clone()); 21 + + 22 + if let Some(cp) = self.config_plugins.get_mut(&plugin.appid) { 23 + if let Err(e) = plugin.set_enabled(enabled) { 24 + error!( 25 + -- 26 + 2.51.0 27 +