Refresh mentions list after plugin install/uninstall (#15598)

Refresh mentions list after plugin install/uninstall to that $mentions
are updated without requiring exiting/launching the client.
This commit is contained in:
canvrno-oai authored and GitHub committed 2026-03-24 09:36:26 -07:00
1 parent 2d5a3bfe76
commit 0f90a34676
4 files changed
+18 -2

No files matched your search

+6 -1
View File
@@ -9124,7 +9124,7 @@ impl ChatWidget {
self.bottom_pane.set_connectors_snapshot(Some(snapshot));
}
fn refresh_plugin_mentions(&mut self) {
pub(crate) fn refresh_plugin_mentions(&mut self) {
if !self.config.features.enabled(Feature::Plugins) {
self.bottom_pane.set_plugin_mentions(/*plugins*/ None);
return;
@@ -9137,6 +9137,11 @@ impl ChatWidget {
self.bottom_pane.set_plugin_mentions(Some(plugins));
}
pub(crate) fn sync_plugin_mentions_config(&mut self, config: &Config) {
self.config.features = config.features.clone();
self.config.config_layer_stack = config.config_layer_stack.clone();
}
pub(crate) fn open_review_popup(&mut self) {
let mut items: Vec<SelectionItem> = Vec::new();