Fix saving path settings if set from dialog

This commit is contained in:
Matt Nadareski
2021-12-21 20:49:35 -08:00
parent 91f6e266d1
commit 743c943363
2 changed files with 7 additions and 5 deletions

View File

@@ -36,6 +36,7 @@
- Refine the "missing disc" text
- Overhaul XeMID handling
- Fix output dialog issues in Options window
- Fix saving path settings if set from dialog
### 2.1 (2021-07-22)
- Enum, no more

View File

@@ -18,17 +18,17 @@ namespace MPF.GUI.ViewModels
/// <summary>
/// Parent OptionsWindow object
/// </summary>
public OptionsWindow Parent { get; private set; }
public OptionsWindow Parent { get; }
/// <summary>
/// Current set of options
/// </summary>
public Options Options { get; private set; }
public Options Options { get; }
/// <summary>
/// Flag for if settings were saved or not
/// </summary>
public bool SavedSettings { get; private set; } = false;
public bool SavedSettings { get; private set; }
#endregion
@@ -37,12 +37,12 @@ namespace MPF.GUI.ViewModels
/// <summary>
/// List of available internal programs
/// </summary>
public List<Element<InternalProgram>> InternalPrograms { get; private set; } = PopulateInternalPrograms();
public List<Element<InternalProgram>> InternalPrograms => PopulateInternalPrograms();
/// <summary>
/// Current list of supported system profiles
/// </summary>
public List<RedumpSystemComboBoxItem> Systems { get; private set; } = RedumpSystemComboBoxItem.GenerateElements().ToList();
public List<RedumpSystemComboBoxItem> Systems => RedumpSystemComboBoxItem.GenerateElements().ToList();
#endregion
@@ -155,6 +155,7 @@ namespace MPF.GUI.ViewModels
if (exists)
{
Options[pathSettingName] = path;
TextBoxForPathSetting(pathSettingName).Text = path;
}
else