mirror of
https://github.com/9ParsonsB/Pulsar.git
synced 2025-04-18 09:00:38 -04:00
save potential settings change after action
This commit is contained in:
parent
a91acb841b
commit
a2700d6dc0
@ -936,6 +936,9 @@ namespace Observatory.UI.Views
|
|||||||
actionButton.Click += (object sender, RoutedEventArgs e) =>
|
actionButton.Click += (object sender, RoutedEventArgs e) =>
|
||||||
{
|
{
|
||||||
action.Invoke();
|
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);
|
settingsGrid.AddControl(actionButton, settingsGrid.RowDefinitions.Count - 1, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user