From c8a987a2a39ab4f9560096a3c087b6cef6cb8181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Sto=C5=A1i=C4=87?= Date: Tue, 20 Sep 2022 11:28:47 +0200 Subject: [PATCH] Fix log folder --- src/modules/FileLocksmith/FileLocksmithExt/Constants.h | 3 +++ .../FileLocksmith/FileLocksmithExt/PowerToysModule.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/FileLocksmith/FileLocksmithExt/Constants.h b/src/modules/FileLocksmith/FileLocksmithExt/Constants.h index c3c7925b2d..55c0b7c52e 100644 --- a/src/modules/FileLocksmith/FileLocksmithExt/Constants.h +++ b/src/modules/FileLocksmith/FileLocksmithExt/Constants.h @@ -23,6 +23,9 @@ namespace constants::nonlocalizable // String key used by PowerToys constexpr WCHAR PowerToyKey[] = L"FileLocksmith"; + + // Nonlocalized name of this PowerToy, for logs, etc + constexpr WCHAR PowerToyName[] = L"File Locksmith"; } // Macros, non-localizable diff --git a/src/modules/FileLocksmith/FileLocksmithExt/PowerToysModule.cpp b/src/modules/FileLocksmith/FileLocksmithExt/PowerToysModule.cpp index bf30ce6b63..12ccc0057e 100644 --- a/src/modules/FileLocksmith/FileLocksmithExt/PowerToysModule.cpp +++ b/src/modules/FileLocksmith/FileLocksmithExt/PowerToysModule.cpp @@ -16,7 +16,7 @@ public: FileLocksmithModule() { m_enabled = true; - LoggerHelpers::init_logger(constants::nonlocalizable::PowerToyKey, L"ModuleInterface", LogSettings::fileLocksmithLoggerName); + LoggerHelpers::init_logger(constants::nonlocalizable::PowerToyName, L"ModuleInterface", LogSettings::fileLocksmithLoggerName); } @@ -41,7 +41,7 @@ public: settings.set_description(L"TODO: GET_RESOURCE_STRING(IDS_SETTINGS_DESCRIPTION"); settings.set_icon_key(L"TODO: pt-file-locksmith"); - // Link to the GitHub PowerRename sub-page + // Link to the GitHub FileLocksmith sub-page settings.set_overview_link(L"TODO: GET_RESOURCE_STRING(IDS_OVERVIEW_LINK)"); return settings.serialize_to_buffer(buffer, buffer_size);