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 15 additions and 14 deletions

View File

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

View File

@ -1,14 +1,15 @@
#include "resource.h"
#include "../../../common/version.h"
<EFBFBD>
匀吀刀䤀一䜀吀䄀䈀䰀䔀ഀ<EFBFBD>
䈀䔀䜀䤀一ഀ<EFBFBD>
IDS_LAUNCHER_NAME L"Launcher"
IDS_LAUNCHER_NAME L"Run"
    䤀䐀匀开䰀䄀唀一䌀䠀䔀刀开匀䔀吀吀䤀一䜀匀开䐀䔀匀䌀 䰀∀㰀一漀 搀攀猀挀爀椀瀀琀椀漀渀㸀∀ഀ<EFBFBD>
䔀一䐀ഀ<EFBFBD>
<EFBFBD>
 嘀䔀刀匀䤀伀一䤀一䘀伀ഀ<EFBFBD>
FILEVERSION 0,1,0,0
PRODUCTVERSION 0,1,0,0
FILEVERSION FILE_VERSION
PRODUCTVERSION PRODUCT_VERSION
 䘀䤀䰀䔀䘀䰀䄀䜀匀䴀䄀匀䬀  砀㌀昀䰀ഀ<EFBFBD>
⌀椀昀搀攀昀 开䐀䔀䈀唀䜀ഀ<EFBFBD>
 䘀䤀䰀䔀䘀䰀䄀䜀匀  砀㄀䰀ഀ<EFBFBD>
@ -23,14 +24,14 @@
    䈀䔀䜀䤀一ഀ<EFBFBD>
        䈀䰀伀䌀䬀    㐀戀 ∀ഀ<EFBFBD>
        䈀䔀䜀䤀一ഀ<EFBFBD>
VALUE "CompanyName", "Company Name"
VALUE "FileDescription", "Wox.Launcher Module"
VALUE "FileVersion", "0.1.0.0"
VALUE "InternalName", "Wox.Launcher"
VALUE "LegalCopyright", "Copyright (C) 2019 Company Name"
VALUE "OriginalFilename", "Wox.Launcher.dll"
VALUE "ProductName", "Wox.Launcher"
VALUE "ProductVersion", "0.1.0.0"
VALUE "CompanyName", COMPANY_NAME
VALUE "FileDescription", "Microsoft.Launcher Module"
VALUE "FileVersion", FILE_VERSION_STRING
VALUE "InternalName", "Microsoft.Launcher"
VALUE "LegalCopyright", COPYRIGHT_NOTE
VALUE "OriginalFilename", "Microsoft.Launcher.dll"
VALUE "ProductName", "Microsoft.Launcher"
VALUE "ProductVersion", PRODUCT_VERSION_STRING
        䔀一䐀ഀ<EFBFBD>
    䔀一䐀ഀ<EFBFBD>
    䈀䰀伀䌀䬀 ∀嘀愀爀䘀椀氀攀䤀渀昀漀∀ഀ<EFBFBD>

View File

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