Skip to content

Commit dd0899f

Browse files
committed
Check always running as administrator
1 parent 02de9d6 commit dd0899f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Flow.Launcher/App.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public App()
7171
return;
7272
}
7373

74+
// Check if the application is running as administrator
75+
if (_settings.AlwaysRunAsAdministrator && !Win32Helper.IsAdministrator())
76+
{
77+
RestartApp(true);
78+
return;
79+
}
80+
7481
// Configure the dependency injection container
7582
try
7683
{

0 commit comments

Comments
 (0)