diff --git a/Flow.Launcher/Helper/AutoStartup.cs b/Flow.Launcher/Helper/AutoStartup.cs index 96578b2fa..2601645db 100644 --- a/Flow.Launcher/Helper/AutoStartup.cs +++ b/Flow.Launcher/Helper/AutoStartup.cs @@ -78,11 +78,9 @@ public class AutoStartup } else { - // If run level is not correct or we need to change a highest run level task, - // we cannot edit it because we are not administrator + // If run level is not correct, we cannot edit it because we are not administrator // So we just throw an exception to let the user know - if (!runLevelCorrect || // run level is not correct - alwaysRunAsAdministrator) // we need to change a highest run level task + if (!runLevelCorrect) { throw new UnauthorizedAccessException("Cannot edit task run level because the app is not running as administrator."); }