mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
Moving launcher save settings under AppData/Local/Microsoft/PowerToys/Run
This commit is contained in:
@@ -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; }
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user