mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Remove old before creating new one
This commit is contained in:
parent
c5c24acb17
commit
1073061bda
1 changed files with 2 additions and 0 deletions
|
|
@ -126,12 +126,14 @@ public class AutoStartup
|
|||
public static void ChangeToViaLogonTask(bool alwaysRunAsAdministrator)
|
||||
{
|
||||
Disable(false);
|
||||
Disable(true); // Remove old logon task so that we can create a new one
|
||||
Enable(true, alwaysRunAsAdministrator);
|
||||
}
|
||||
|
||||
public static void ChangeToViaRegistry()
|
||||
{
|
||||
Disable(true);
|
||||
Disable(false); // Remove old registry so that we can create a new one
|
||||
// We do not need to use alwaysRunAsAdministrator for registry, so we just set false here
|
||||
Enable(false, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue