Renamed DeepL mode setting
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user