mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
added logs to fancy zones (#8190)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <lib/FancyZonesData.h>
|
||||
#include <lib/FancyZonesWinHookEventIDs.h>
|
||||
#include <lib/FancyZonesData.cpp>
|
||||
#include <lib/FancyZonesLogger.h>
|
||||
|
||||
extern "C" IMAGE_DOS_HEADER __ImageBase;
|
||||
|
||||
@@ -74,6 +75,8 @@ public:
|
||||
// Enable the powertoy
|
||||
virtual void enable()
|
||||
{
|
||||
FancyZonesLogger::GetLogger()->info("FancyZones enabling");
|
||||
|
||||
if (!m_app)
|
||||
{
|
||||
InitializeWinhookEventIds();
|
||||
@@ -130,6 +133,8 @@ public:
|
||||
// Disable the powertoy
|
||||
virtual void disable()
|
||||
{
|
||||
FancyZonesLogger::GetLogger()->info("FancyZones disabling");
|
||||
|
||||
Disable(true);
|
||||
}
|
||||
|
||||
@@ -150,6 +155,7 @@ public:
|
||||
{
|
||||
app_name = GET_RESOURCE_STRING(IDS_FANCYZONES);
|
||||
app_key = NonLocalizable::FancyZonesStr;
|
||||
FancyZonesLogger::Init(PTSettingsHelper::get_module_save_folder_location(app_key));
|
||||
m_settings = MakeFancyZonesSettings(reinterpret_cast<HINSTANCE>(&__ImageBase), FancyZonesModule::get_name(), FancyZonesModule::get_key());
|
||||
FancyZonesDataInstance().LoadFancyZonesData();
|
||||
s_instance = this;
|
||||
|
||||
Reference in New Issue
Block a user