From 5cc4a36762de2a726cde2dbb231f63b77fa73b8d Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 20 Dec 2022 13:35:20 +0900 Subject: [PATCH 1/6] Add StartEn Setting --- .../UserSettings/Settings.cs | 1 + Flow.Launcher/Languages/en.xaml | 2 ++ Flow.Launcher/MainWindow.xaml | 1 + Flow.Launcher/MainWindow.xaml.cs | 21 +++++++++++++ Flow.Launcher/SettingWindow.xaml | 31 ++++++++++++++++--- 5 files changed, 52 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs index 09fad990bdd..9ae1748daff 100644 --- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs +++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs @@ -147,6 +147,7 @@ public CustomBrowserViewModel CustomBrowser /// public bool ShouldUsePinyin { get; set; } = false; public bool AlwaysPreview { get; set; } = false; + public bool AlwaysStartEn { get; set; } = false; [JsonInclude, JsonConverter(typeof(JsonStringEnumConverter))] public SearchPrecisionScore QuerySearchPrecision { get; private set; } = SearchPrecisionScore.Regular; diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index d0bdfee9b2c..c1fafa8db2b 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -55,6 +55,8 @@ Select the file manager to use when opening the folder. Default Web Browser Setting for New Tab, New Window, Private Mode. + Always Start in English Layout + If you are using both native language and English keyboard layouts, start the flow in English layout state. Python Directory Auto Update Select diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml index 9f8d523e018..3941c5e0ae2 100644 --- a/Flow.Launcher/MainWindow.xaml +++ b/Flow.Launcher/MainWindow.xaml @@ -244,6 +244,7 @@ + -  @@ -943,13 +945,34 @@ Text="{Binding Settings.PluginSettings.PythonDirectory, TargetNullValue='No Setting'}" />