2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

save potential settings change after action

This commit is contained in:
Xjph 2021-10-26 08:31:25 -02:30
parent a91acb841b
commit a2700d6dc0

@ -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);