Renamed DeepL mode setting

This commit is contained in:
tsommer committed 2022-07-30 16:09:58 +02:00
1 parent 87c12de066
commit b74367aa6f
3 files changed
+13 -13

No files matched your search

@@ -60,9 +60,9 @@ public partial class Setting : UserControl
dropdown.Items.Add("Pro version");
dropdown.SelectedIndex = currentSetting switch
{
SettingDeepL.DISABLED => 0,
SettingDeepL.USE_FREE_ACCOUNT => 1,
SettingDeepL.USE_PRO_ACCOUNT => 2,
SettingDeepLMode.DISABLED => 0,
SettingDeepLMode.USE_FREE_ACCOUNT => 1,
SettingDeepLMode.USE_PRO_ACCOUNT => 2,
_ => 0,
};
@@ -70,11 +70,11 @@ public partial class Setting : UserControl
// Setup the change event handler:
dropdown.SelectedValueChanged += async (sender, args) => await AppSettings.SetDeepLMode(dropdown.SelectedIndex switch
{
0 => SettingDeepL.DISABLED,
1 => SettingDeepL.USE_FREE_ACCOUNT,
2 => SettingDeepL.USE_PRO_ACCOUNT,
0 => SettingDeepLMode.DISABLED,
1 => SettingDeepLMode.USE_FREE_ACCOUNT,
2 => SettingDeepLMode.USE_PRO_ACCOUNT,
_ => SettingDeepL.DISABLED,
_ => SettingDeepLMode.DISABLED,
});
// Apply the desired layout: