From a2700d6dc0973306168e6969afaf81b1ec064d85 Mon Sep 17 00:00:00 2001 From: Xjph Date: Tue, 26 Oct 2021 08:31:25 -0230 Subject: [PATCH] save potential settings change after action --- ObservatoryCore/UI/Views/BasicUIView.axaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ObservatoryCore/UI/Views/BasicUIView.axaml.cs b/ObservatoryCore/UI/Views/BasicUIView.axaml.cs index ab70626..ebe142a 100644 --- a/ObservatoryCore/UI/Views/BasicUIView.axaml.cs +++ b/ObservatoryCore/UI/Views/BasicUIView.axaml.cs @@ -936,6 +936,9 @@ namespace Observatory.UI.Views actionButton.Click += (object sender, RoutedEventArgs e) => { action.Invoke(); + + //Possible for the action to have changed a setting, save just in case. + PluginManagement.PluginManager.GetInstance.SaveSettings(plugin, plugin.Settings); }; settingsGrid.AddControl(actionButton, settingsGrid.RowDefinitions.Count - 1, 0);