From bb9c7a1b8417c2d0ae9a8b2bcc16209e765f96d8 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Sat, 24 Jul 2021 13:57:30 +0800 Subject: [PATCH] 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 b3e9052fc..c2a32100d 100644 --- a/Flow.Launcher/App.xaml.cs +++ b/Flow.Launcher/App.xaml.cs @@ -75,7 +75,7 @@ namespace Flow.Launcher Http.API = API; Http.Proxy = _settings.Proxy; - + await PluginManager.InitializePlugins(API); var window = new MainWindow(_settings, _mainVM); @@ -99,6 +99,8 @@ namespace Flow.Launcher 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 000000000..dd31f1a34 --- /dev/null +++ b/Plugins/Flow.Launcher.Plugin.WindowsSettings @@ -0,0 +1 @@ +Subproject commit dd31f1a34a5034dfbf85a53a71b02034f63ce0ae