Skip to content

Commit

Permalink
Force path update if default changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Dec 28, 2024
1 parent fb05409 commit dccd78a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
- Partially clean up PS3CFW
- Wrap some PhysicalTool method calls
- Minor UI and other fixes
- Force path update if default changed

### 3.2.4 (2024-11-24)

Expand Down
7 changes: 7 additions & 0 deletions MPF.UI/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,15 @@ public void OnOptionsUpdated(object? sender, EventArgs e)
if (optionsWindow?.OptionsViewModel == null)
return;

// Get if the settings were saved
bool savedSettings = optionsWindow.OptionsViewModel.SavedSettings;
var options = optionsWindow.OptionsViewModel.Options;

// Force a refresh of the path, if necessary
if (MainViewModel.Options.DefaultOutputPath != options.DefaultOutputPath)
MainViewModel.OutputPath = string.Empty;

// Update and save options, if necessary
MainViewModel.UpdateOptions(savedSettings, options);

// Set the UI color scheme according to the options
Expand Down

0 comments on commit dccd78a

Please sign in to comment.