From ceddcc07223f12bb91b6f4e7353e910e98c04842 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 12 Sep 2020 14:11:55 -0700 Subject: [PATCH] Remove useless passthrough vars --- DICUI.Avalonia/MainWindow.axaml.cs | 14 +++++++------- DICUI.Avalonia/UIOptions.cs | 12 ------------ DICUI.Library/Data/Options.cs | 4 ++++ DICUI/UIOptions.cs | 12 ------------ DICUI/Windows/MainWindow.xaml.cs | 16 ++++++++-------- 5 files changed, 19 insertions(+), 39 deletions(-) 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