[FancyZones]Set FancyZones process and main thread priority to Normal (#28581)

This commit is contained in:
Seraphima Zykova
2023-09-19 17:47:05 +03:00
committed by GitHub
parent e09839dd6e
commit bdf9a44717
2 changed files with 12 additions and 0 deletions

View File

@@ -71,6 +71,11 @@ public:
PostMessageW(m_window, WM_PRIV_LOCATIONCHANGE, NULL, NULL);
})
{
if (!SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_NORMAL))
{
Logger::warn("Failed to set main thread priority");
}
this->disableModuleCallback = std::move(disableModuleCallbackFunction);
FancyZonesSettings::instance().LoadSettings();