mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add CheckFirstLaucnh Setting
This commit is contained in:
parent
25f71e8327
commit
61a5fd1045
2 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue