-
-
Notifications
You must be signed in to change notification settings - Fork 448
Support Logon Task for Faster Startup Experience #3218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
3260fab
3f93d18
3d9a6b2
1ff8c36
585b701
2a445e3
9630516
fe48427
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,16 @@ public bool StartFlowLauncherOnSystemStartup | |
try | ||
{ | ||
if (value) | ||
AutoStartup.Enable(); | ||
{ | ||
// Enable either registry or task scheduler | ||
AutoStartup.Enable(UseLogonTaskForStartup); | ||
} | ||
else | ||
AutoStartup.Disable(); | ||
{ | ||
// Disable both registry and task scheduler | ||
AutoStartup.Disable(true); | ||
|
||
AutoStartup.Disable(false); | ||
} | ||
} | ||
catch (Exception e) | ||
{ | ||
|
@@ -54,6 +61,29 @@ public bool StartFlowLauncherOnSystemStartup | |
} | ||
} | ||
|
||
public bool UseLogonTaskForStartup | ||
{ | ||
get => Settings.UseLogonTaskForStartup; | ||
set | ||
{ | ||
Settings.UseLogonTaskForStartup = value; | ||
|
||
if (StartFlowLauncherOnSystemStartup) | ||
{ | ||
try | ||
{ | ||
// Disable and enable to update the startup method | ||
AutoStartup.Disable(!UseLogonTaskForStartup); | ||
AutoStartup.Enable(UseLogonTaskForStartup); | ||
} | ||
catch (Exception e) | ||
{ | ||
Notification.Show(InternationalizationManager.Instance.GetTranslation("setAutoStartFailed"), | ||
e.Message); | ||
} | ||
} | ||
} | ||
} | ||
|
||
public List<SearchWindowScreenData> SearchWindowScreens { get; } = | ||
DropdownDataGeneric<SearchWindowScreens>.GetValues<SearchWindowScreenData>("SearchWindowScreen"); | ||
|
Uh oh!
There was an error while loading. Please reload this page.