From bb9c7a1b8417c2d0ae9a8b2bcc16209e765f96d8 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 24 Jul 2021 13:57:30 +0800 Subject: [PATCH 1/3] save setting after startup --- Flow.Launcher/App.xaml.cs | 4 +++- Plugins/Flow.Launcher.Plugin.WindowsSettings | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 160000 Plugins/Flow.Launcher.Plugin.WindowsSettings diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index b3e9052fc54..c2a32100dbb 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -75,7 +75,7 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => Http.API = API; Http.Proxy = _settings.Proxy; - + await PluginManager.InitializePlugins(API); var window = new MainWindow(_settings, _mainVM); @@ -99,6 +99,8 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => AutoStartup(); AutoUpdates(); + API.SaveAppAllSettings(); + _mainVM.MainWindowVisibility = _settings.HideOnStartup ? Visibility.Hidden : Visibility.Visible; Log.Info("|App.OnStartup|End Flow Launcher startup ---------------------------------------------------- "); }); diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings b/Plugins/Flow.Launcher.Plugin.WindowsSettings new file mode 160000 index 00000000000..dd31f1a34a5 --- /dev/null +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings @@ -0,0 +1 @@ +Subproject commit dd31f1a34a5034dfbf85a53a71b02034f63ce0ae From 930eab67b8b6678268c8e8fe3f615cad9588eb10 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 24 Jul 2021 14:06:19 +0800 Subject: [PATCH 2/3] Revert "save setting after startup" This reverts commit bb9c7a1b8417c2d0ae9a8b2bcc16209e765f96d8. --- Flow.Launcher/App.xaml.cs | 4 +--- Plugins/Flow.Launcher.Plugin.WindowsSettings | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 160000 Plugins/Flow.Launcher.Plugin.WindowsSettings diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index c2a32100dbb..b3e9052fc54 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -75,7 +75,7 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => Http.API = API; Http.Proxy = _settings.Proxy; - + await PluginManager.InitializePlugins(API); var window = new MainWindow(_settings, _mainVM); @@ -99,8 +99,6 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => AutoStartup(); AutoUpdates(); - API.SaveAppAllSettings(); - _mainVM.MainWindowVisibility = _settings.HideOnStartup ? Visibility.Hidden : Visibility.Visible; Log.Info("|App.OnStartup|End Flow Launcher startup ---------------------------------------------------- "); }); diff --git a/Plugins/Flow.Launcher.Plugin.WindowsSettings b/Plugins/Flow.Launcher.Plugin.WindowsSettings deleted file mode 160000 index dd31f1a34a5..00000000000 --- a/Plugins/Flow.Launcher.Plugin.WindowsSettings +++ /dev/null @@ -1 +0,0 @@ -Subproject commit dd31f1a34a5034dfbf85a53a71b02034f63ce0ae From 0595676495b340cae75be854cc6a3aae2f8d975b Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 24 Jul 2021 14:07:21 +0800 Subject: [PATCH 3/3] Update App.xaml.cs Save Setting After Startup --- Flow.Launcher/App.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs index b3e9052fc54..c2a32100dbb 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -75,7 +75,7 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => Http.API = API; Http.Proxy = _settings.Proxy; - + await PluginManager.InitializePlugins(API); var window = new MainWindow(_settings, _mainVM); @@ -99,6 +99,8 @@ await Stopwatch.NormalAsync("|App.OnStartup|Startup cost", async () => AutoStartup(); AutoUpdates(); + API.SaveAppAllSettings(); + _mainVM.MainWindowVisibility = _settings.HideOnStartup ? Visibility.Hidden : Visibility.Visible; Log.Info("|App.OnStartup|End Flow Launcher startup ---------------------------------------------------- "); });