Moving launcher save settings under AppData/Local/Microsoft/PowerToys/Run

This commit is contained in:
ryanbodrug-microsoft
2020-05-03 15:54:23 -07:00
parent 1655594514
commit da550a4a67
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
{ {
public class PowerLauncherSettings : BasePTModuleSettings public class PowerLauncherSettings : BasePTModuleSettings
{ {
public const string POWERTOYNAME = "Launcher"; public const string POWERTOYNAME = "Run";
public PowerLauncherProperties properties { get; set; } public PowerLauncherProperties properties { get; set; }

View File

@@ -27,7 +27,7 @@ namespace PowerLauncher
// Set up watcher // Set up watcher
try try
{ {
_watcher = Helper.GetFileWatcher("Launcher", "settings.json", OverloadSettings); _watcher = Helper.GetFileWatcher(PowerLauncherSettings.POWERTOYNAME, "settings.json", OverloadSettings);
} }
catch (Exception e) catch (Exception e)
{ {
@@ -47,7 +47,7 @@ namespace PowerLauncher
retry = false; retry = false;
try try
{ {
var overloadSettings = SettingsUtils.GetSettings<PowerLauncherSettings>("Launcher"); var overloadSettings = SettingsUtils.GetSettings<PowerLauncherSettings>(PowerLauncherSettings.POWERTOYNAME);
var openPowerlauncher = ConvertHotkey(overloadSettings.properties.open_powerlauncher); var openPowerlauncher = ConvertHotkey(overloadSettings.properties.open_powerlauncher);
if (_settings.Hotkey != openPowerlauncher) if (_settings.Hotkey != openPowerlauncher)