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 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

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

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)