diff --git a/NotEnoughAV1Encodes/MainWindow.xaml b/NotEnoughAV1Encodes/MainWindow.xaml
index 3ab9dfd..c113eca 100644
--- a/NotEnoughAV1Encodes/MainWindow.xaml
+++ b/NotEnoughAV1Encodes/MainWindow.xaml
@@ -172,12 +172,13 @@
-
+
+
diff --git a/NotEnoughAV1Encodes/MainWindow.xaml.cs b/NotEnoughAV1Encodes/MainWindow.xaml.cs
index e0a9277..d15c703 100644
--- a/NotEnoughAV1Encodes/MainWindow.xaml.cs
+++ b/NotEnoughAV1Encodes/MainWindow.xaml.cs
@@ -84,6 +84,8 @@ private void Initialize()
}
LoadPresets();
+
+ try { ComboBoxPresets.SelectedItem = settingsDB.DefaultPreset; } catch { }
}
private void LoadPresets()
@@ -451,6 +453,17 @@ private void ButtonDeletePreset_Click(object sender, RoutedEventArgs e)
}
+ private void ButtonSetPresetDefault_Click(object sender, RoutedEventArgs e)
+ {
+ try
+ {
+ settingsDB.DefaultPreset = ComboBoxPresets.Text;
+ Directory.CreateDirectory(Path.Combine(Global.AppData, "NEAV1E"));
+ File.WriteAllText(Path.Combine(Global.AppData, "NEAV1E", "settings.json"), JsonConvert.SerializeObject(settingsDB, Formatting.Indented));
+ }
+ catch (Exception ex) { MessageBox.Show(ex.Message); }
+ }
+
private void ButtonEditSelectedItem_Click(object sender, RoutedEventArgs e)
{
if (ProgramState != 0) return;
diff --git a/NotEnoughAV1Encodes/SettingsDB.cs b/NotEnoughAV1Encodes/SettingsDB.cs
index a2bacff..7addbee 100644
--- a/NotEnoughAV1Encodes/SettingsDB.cs
+++ b/NotEnoughAV1Encodes/SettingsDB.cs
@@ -25,5 +25,7 @@ public class SettingsDB
public bool PriorityNormal { get; set; } = true;
/// CultureInfo for Language (Default: en-US)
public CultureInfo CultureInfo { get; set; } = new("en");
+ /// Default Preset to load on startup
+ public string DefaultPreset { get; set; }
}
}
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs b/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
index df22a6a..3a5b221 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
@@ -159,6 +159,15 @@ public static string ButtonSelectBGImage {
}
}
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Set as Default ähnelt.
+ ///
+ public static string ButtonSetPresetDefault {
+ get {
+ return ResourceManager.GetString("ButtonSetPresetDefault", resourceCulture);
+ }
+ }
+
///
/// Sucht eine lokalisierte Zeichenfolge, die Test Settings ähnelt.
///
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.de.resx b/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
index 25dfea1..963d976 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
@@ -150,6 +150,9 @@
Auswählen
+
+ Als Standard festlegen
+
Einstellungen testen
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.resx b/NotEnoughAV1Encodes/resources/lang/Strings.resx
index 0dbe543..3580a03 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.resx
@@ -150,6 +150,9 @@
Select
+
+ Set as Default
+
Test Settings
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.ru-RU.resx b/NotEnoughAV1Encodes/resources/lang/Strings.ru-RU.resx
index 8561e15..6765693 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.ru-RU.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.ru-RU.resx
@@ -150,6 +150,9 @@
Выбрать
+
+ Установить по умолчанию
+
Проверить настройки
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.zh-CN.resx b/NotEnoughAV1Encodes/resources/lang/Strings.zh-CN.resx
index 74a5726..b8e9000 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.zh-CN.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.zh-CN.resx
@@ -150,6 +150,9 @@
选择
+
+ 设为默认
+
测试设置