diff --git a/DICUI.Avalonia/MainWindow.axaml.cs b/DICUI.Avalonia/MainWindow.axaml.cs index 88fc7767..8a73cb3f 100644 --- a/DICUI.Avalonia/MainWindow.axaml.cs +++ b/DICUI.Avalonia/MainWindow.axaml.cs @@ -87,7 +87,7 @@ namespace DICUI.Avalonia // TODO: If log window open, "dock" it to the current Window - if (UIOptions.OpenLogWindowAtStartup) + if (UIOptions.Options.OpenLogWindowAtStartup) { //TODO: this should be bound directly to WindowVisible property in two way fashion // we need to study how to properly do it in XAML @@ -126,7 +126,7 @@ namespace DICUI.Avalonia if (this.Find("DriveLetterComboBox").SelectedItem is Drive drive) { // Get the current media type - if (!UIOptions.SkipMediaTypeDetection) + if (!UIOptions.Options.SkipMediaTypeDetection) { ViewModels.LoggerViewModel.VerboseLog("Trying to detect media type for drive {0}.. ", drive.Letter); CurrentMediaType = Validators.GetMediaType(drive); @@ -210,7 +210,7 @@ namespace DICUI.Avalonia // Set the output directory, if we changed drives or it's not already if (driveChanged || string.IsNullOrEmpty(this.Find("OutputDirectoryTextBox").Text)) - this.Find("OutputDirectoryTextBox").Text = Path.Combine(UIOptions.DefaultOutputPath, drive?.VolumeLabel ?? string.Empty); + this.Find("OutputDirectoryTextBox").Text = Path.Combine(UIOptions.Options.DefaultOutputPath, drive?.VolumeLabel ?? string.Empty); // Get the extension for the file for the next two statements string extension = Env?.GetExtension(mediaType); @@ -236,7 +236,7 @@ namespace DICUI.Avalonia this.Find