From 3a8cd8cbbb371ccccadc16a3afba2bbdd5bb9276 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <45326534+taooceros@users.noreply.github.com> Date: Sat, 24 Jul 2021 14:38:18 +0800 Subject: [PATCH] save setting after startup (#594) * save setting after startup * Revert "save setting after startup" This reverts commit bb9c7a1b8417c2d0ae9a8b2bcc16209e765f96d8. * 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 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 ---------------------------------------------------- "); });