From f3fcaee14ea714bfc1237536327b04ad5952dd50 Mon Sep 17 00:00:00 2001 From: DB p Date: Sat, 5 Apr 2025 01:46:47 +0900 Subject: [PATCH] - Add strings - Adjust combobox --- Flow.Launcher/Languages/en.xaml | 4 ++++ .../SettingsPanePluginsViewModel.cs | 17 ++++++++++++- .../Views/SettingsPanePlugins.xaml | 24 ++++++++++++------- 3 files changed, 35 insertions(+), 10 deletions(-) diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml index 24ab3cf94..b869a82e1 100644 --- a/Flow.Launcher/Languages/en.xaml +++ b/Flow.Launcher/Languages/en.xaml @@ -134,6 +134,10 @@ Change Action Keywords Plugin seach delay time Change Plugin Seach Delay Time + Advanced Settings: + Enabled + Priority + Search Delay Current Priority New Priority Priority diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs index 69d31a98d..5d55e8e2f 100644 --- a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs +++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginsViewModel.cs @@ -14,9 +14,24 @@ public class SettingsPanePluginsViewModel : BaseModel { private readonly Settings _settings; + private string _selectedDisplayMode = "OnOff"; + public string SelectedDisplayMode + { + get => _selectedDisplayMode; + set + { + if (_selectedDisplayMode != value) + { + _selectedDisplayMode = value; + OnPropertyChanged(nameof(SelectedDisplayMode)); + UpdateDisplayModeFromSelection(); + } + } + } + public void UpdateDisplayModeFromSelection() { - switch (CurrentDisplayMode) + switch (SelectedDisplayMode) { case "OnOff": IsOnOffSelected = true; diff --git a/Flow.Launcher/SettingPages/Views/SettingsPanePlugins.xaml b/Flow.Launcher/SettingPages/Views/SettingsPanePlugins.xaml index 23ec6d242..bfab94f20 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPanePlugins.xaml +++ b/Flow.Launcher/SettingPages/Views/SettingsPanePlugins.xaml @@ -43,25 +43,31 @@ VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource Color15B}" - Text="Advanced Settings:" /> + Text="{DynamicResource FilterComboboxLabel}" /> - - - + + + + + + + + +