Skip to content

Commit de58034

Browse files
committed
Code quality
1 parent 7d39c52 commit de58034

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,16 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
101101
// Check first launch
102102
if (_settings.FirstLaunch)
103103
{
104+
// Set First Launch to false
104105
_settings.FirstLaunch = false;
106+
107+
// Set Backdrop Type to Acrylic for Windows 11 when First Launch. Default is None
108+
if (Win32Helper.IsBackdropSupported()) _settings.BackdropType = BackdropTypes.Acrylic;
109+
110+
// Save settings
105111
App.API.SaveAppAllSettings();
106-
/* Set Backdrop Type to Acrylic for Windows 11 when First Launch. Default is None. */
107-
if (OperatingSystem.IsWindowsVersionAtLeast(10, 0, 22000))
108-
_settings.BackdropType = BackdropTypes.Acrylic;
112+
113+
// Show Welcome Window
109114
var WelcomeWindow = new WelcomeWindow();
110115
WelcomeWindow.Show();
111116
}
@@ -206,6 +211,7 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
206211
WindowAnimation();
207212
}
208213

214+
// Update activate times
209215
_settings.ActivateTimes++;
210216
}
211217
else

0 commit comments

Comments
 (0)