diff --git a/src/Soloplan.WhatsON.GUI/App.xaml.cs b/src/Soloplan.WhatsON.GUI/App.xaml.cs index a7fb7c3..a7eaace 100644 --- a/src/Soloplan.WhatsON.GUI/App.xaml.cs +++ b/src/Soloplan.WhatsON.GUI/App.xaml.cs @@ -70,8 +70,6 @@ public void ApplyTheme(bool? isDark = null) protected override void OnStartup(StartupEventArgs e) { - base.OnStartup(e); - var configDirArg = e.Args.FirstOrDefault(a => a.ToLower().StartsWith(ConfigDirArgName.ToLower())); if (configDirArg != null) { @@ -112,10 +110,17 @@ protected override void OnStartup(StartupEventArgs e) this.themeHelper.Initialize(this.handler.VisualSettings?.ColorSettings); this.ApplyTheme(); + if (!this.config.OpenMinimized) + { + this.handler.ShowOrHideWindow(); + } + Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 15 }); this.scheduler.Start(); ComponentDispatcher.ThreadPreprocessMessage += this.ComponentDispatcherThreadPreprocessMessage; + + base.OnStartup(e); } /// diff --git a/src/Soloplan.WhatsON.GUI/Configuration/AboutPage.xaml b/src/Soloplan.WhatsON.GUI/Configuration/AboutPage.xaml index d549b93..009f867 100644 --- a/src/Soloplan.WhatsON.GUI/Configuration/AboutPage.xaml +++ b/src/Soloplan.WhatsON.GUI/Configuration/AboutPage.xaml @@ -40,8 +40,8 @@ -