Add CheckFirstLaucnh Setting

This commit is contained in:
DB p 2021-12-02 18:39:44 +09:00
parent 25f71e8327
commit 61a5fd1045
2 changed files with 11 additions and 0 deletions

View file

@ -39,6 +39,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
public string ResultFontWeight { get; set; }
public string ResultFontStretch { get; set; }
public bool UseGlyphIcons { get; set; } = true;
public bool FirstLaunch { get; set; } = true;
public int CustomExplorerIndex { get; set; } = 0;

View file

@ -65,6 +65,7 @@ namespace Flow.Launcher
private void OnLoaded(object sender, RoutedEventArgs _)
{
CheckFirstLaunch();
HideStartup();
// show notify icon when flowlauncher is hidden
InitializeNotifyIcon();
@ -239,6 +240,15 @@ namespace Flow.Launcher
};
}
private void CheckFirstLaunch()
{
if (_settings.FirstLaunch)
{
_settings.FirstLaunch = false;
_viewModel.Save();
OpenWelcomeWindow();
}
}
private void OpenWelcomeWindow()
{
Flow.Launcher.WelcomeWindow WelcomeWindow = new WelcomeWindow(_settings);