diff --git a/TwitchDownloaderWPF/App.config b/TwitchDownloaderWPF/App.config
index cdd4342a..e16ebc9c 100644
--- a/TwitchDownloaderWPF/App.config
+++ b/TwitchDownloaderWPF/App.config
@@ -241,6 +241,9 @@
0
+
+
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Properties/Settings.Designer.cs b/TwitchDownloaderWPF/Properties/Settings.Designer.cs
index 55dbb23b..0f0c6b35 100644
--- a/TwitchDownloaderWPF/Properties/Settings.Designer.cs
+++ b/TwitchDownloaderWPF/Properties/Settings.Designer.cs
@@ -957,5 +957,17 @@ public int ChatTextTimestampStyle {
this["ChatTextTimestampStyle"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string PreferredQuality {
+ get {
+ return ((string)(this["PreferredQuality"]));
+ }
+ set {
+ this["PreferredQuality"] = value;
+ }
+ }
}
}
diff --git a/TwitchDownloaderWPF/Properties/Settings.settings b/TwitchDownloaderWPF/Properties/Settings.settings
index cf0301d8..15564aee 100644
--- a/TwitchDownloaderWPF/Properties/Settings.settings
+++ b/TwitchDownloaderWPF/Properties/Settings.settings
@@ -236,6 +236,9 @@
0
+
+
+
diff --git a/TwitchDownloaderWPF/WindowQueueOptions.xaml b/TwitchDownloaderWPF/WindowQueueOptions.xaml
index c7717d4b..154a73eb 100644
--- a/TwitchDownloaderWPF/WindowQueueOptions.xaml
+++ b/TwitchDownloaderWPF/WindowQueueOptions.xaml
@@ -36,7 +36,7 @@
-
+
diff --git a/TwitchDownloaderWPF/WindowQueueOptions.xaml.cs b/TwitchDownloaderWPF/WindowQueueOptions.xaml.cs
index b38fd225..e76849bb 100644
--- a/TwitchDownloaderWPF/WindowQueueOptions.xaml.cs
+++ b/TwitchDownloaderWPF/WindowQueueOptions.xaml.cs
@@ -98,6 +98,16 @@ public WindowQueueOptions(List dataList)
string queueFolder = Settings.Default.QueueFolder;
if (Directory.Exists(queueFolder))
textFolder.Text = queueFolder;
+
+ var preferredQuality = Settings.Default.PreferredQuality;
+ for (var i = 0; i < ComboPreferredQuality.Items.Count; i++)
+ {
+ if (ComboPreferredQuality.Items[i] is ComboBoxItem { Content: string quality } && quality == preferredQuality)
+ {
+ ComboPreferredQuality.SelectedIndex = i;
+ break;
+ }
+ }
}
private FileInfo HandleFileCollisionCallback(FileInfo fileInfo)
@@ -721,5 +731,16 @@ private void CheckVideo_OnChecked(object sender, RoutedEventArgs e)
catch { /* Ignored */ }
}
}
+
+ private void ComboPreferredQuality_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (!IsInitialized)
+ return;
+
+ if (ComboPreferredQuality.SelectedItem is ComboBoxItem { Content: string preferredQuality })
+ {
+ Settings.Default.PreferredQuality = preferredQuality;
+ }
+ }
}
}
\ No newline at end of file