mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 02:39:22 +08:00
Improve tracing
This commit is contained in:
parent
498817794a
commit
f763995719
@ -74,7 +74,6 @@ public:
|
|||||||
Logger::info(L"File Locksmith enabled");
|
Logger::info(L"File Locksmith enabled");
|
||||||
m_enabled = true;
|
m_enabled = true;
|
||||||
save_settings();
|
save_settings();
|
||||||
Trace::EnableFileLocksmith(m_enabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void disable() override
|
virtual void disable() override
|
||||||
@ -82,7 +81,6 @@ public:
|
|||||||
Logger::info(L"File Locksmith disabled");
|
Logger::info(L"File Locksmith disabled");
|
||||||
m_enabled = false;
|
m_enabled = false;
|
||||||
save_settings();
|
save_settings();
|
||||||
Trace::EnableFileLocksmith(m_enabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool is_enabled() override
|
virtual bool is_enabled() override
|
||||||
@ -101,8 +99,7 @@ private:
|
|||||||
void init_settings()
|
void init_settings()
|
||||||
{
|
{
|
||||||
m_enabled = FileLocksmithSettingsInstance().GetEnabled();
|
m_enabled = FileLocksmithSettingsInstance().GetEnabled();
|
||||||
// TODO trace
|
Trace::EnableFileLocksmith(m_enabled);
|
||||||
// Trace::EnablePowerRename(m_enabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void save_settings()
|
void save_settings()
|
||||||
@ -110,8 +107,7 @@ private:
|
|||||||
auto& settings = FileLocksmithSettingsInstance();
|
auto& settings = FileLocksmithSettingsInstance();
|
||||||
settings.SetEnabled(m_enabled);
|
settings.SetEnabled(m_enabled);
|
||||||
settings.Save();
|
settings.Save();
|
||||||
// TODO trace
|
Trace::EnableFileLocksmith(m_enabled);
|
||||||
// Trace::EnablePowerRename(m_enabled);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user