mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Save StartWoxOnSystemStartup setting
This commit is contained in:
parent
b402bd6c0e
commit
46e0656fe9
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ namespace Wox
|
|||
CommonStorage.Instance.Save();
|
||||
};
|
||||
|
||||
|
||||
foreach (string theme in LoadAvailableThemes())
|
||||
{
|
||||
string themeName = theme.Substring(theme.LastIndexOf('\\') + 1).Replace(".xaml", "");
|
||||
|
|
@ -118,6 +119,8 @@ namespace Wox
|
|||
private void CbStartWithWindows_OnChecked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
CreateStartupFolderShortcut();
|
||||
CommonStorage.Instance.UserSetting.StartWoxOnSystemStartup = true;
|
||||
CommonStorage.Instance.Save();
|
||||
}
|
||||
|
||||
private void CbStartWithWindows_OnUnchecked(object sender, RoutedEventArgs e)
|
||||
|
|
@ -126,6 +129,9 @@ namespace Wox
|
|||
{
|
||||
File.Delete(woxLinkPath);
|
||||
}
|
||||
|
||||
CommonStorage.Instance.UserSetting.StartWoxOnSystemStartup = false;
|
||||
CommonStorage.Instance.Save();
|
||||
}
|
||||
|
||||
private void CreateStartupFolderShortcut()
|
||||
|
|
|
|||
Loading…
Reference in a new issue