From b232100052024cff9aff53aa15f7b2447f1f3cef Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Mon, 27 May 2024 14:15:43 +0600 Subject: [PATCH 1/2] Fix startup error message when not able to register hotkey being English-only --- Flow.Launcher/App.xaml.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index 9fa5af7e3..765a1a559 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -81,7 +81,7 @@ namespace Flow.Launcher await PluginManager.InitializePluginsAsync(API); await imageLoadertask; - + var window = new MainWindow(_settings, _mainVM); Log.Info($"|App.OnStartup|Dependencies Info:{ErrorReporting.DependenciesInfo()}"); @@ -89,12 +89,13 @@ namespace Flow.Launcher Current.MainWindow = window; Current.MainWindow.Title = Constant.FlowLauncher; - HotKeyMapper.Initialize(_mainVM); - // todo temp fix for instance code logic // load plugin before change language, because plugin language also needs be changed InternationalizationManager.Instance.Settings = _settings; InternationalizationManager.Instance.ChangeLanguage(_settings.Language); + + HotKeyMapper.Initialize(_mainVM); + // main windows needs initialized before theme change because of blur settings ThemeManager.Instance.Settings = _settings; ThemeManager.Instance.ChangeTheme(_settings.Theme); From bb5173ab013741b604563cc7908c95234d9e3b47 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Wed, 29 May 2024 12:17:39 +0600 Subject: [PATCH 2/2] Improve plugins pane performance in settings --- .../Controls/InstalledPluginDisplay.xaml | 107 +----------------- .../InstalledPluginDisplayBottomData.xaml | 81 +++++++++++++ .../InstalledPluginDisplayBottomData.xaml.cs | 11 ++ .../InstalledPluginDisplayKeyword.xaml | 47 ++++++++ .../InstalledPluginDisplayKeyword.xaml.cs | 11 ++ Flow.Launcher/ViewModel/PluginViewModel.cs | 7 ++ 6 files changed, 159 insertions(+), 105 deletions(-) create mode 100644 Flow.Launcher/Resources/Controls/InstalledPluginDisplayBottomData.xaml create mode 100644 Flow.Launcher/Resources/Controls/InstalledPluginDisplayBottomData.xaml.cs create mode 100644 Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml create mode 100644 Flow.Launcher/Resources/Controls/InstalledPluginDisplayKeyword.xaml.cs diff --git a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml index c2ed4975b..ed3c29690 100644 --- a/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml +++ b/Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml @@ -93,42 +93,7 @@ - - - -  - - -