mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[FancyZones]Additional logs (#16927)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "VirtualDesktop.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <common/logger/logger.h>
|
||||
|
||||
winrt::com_ptr<IWorkArea> MonitorWorkAreaHandler::GetWorkArea(const GUID& desktopId, HMONITOR monitor)
|
||||
{
|
||||
auto desktopIt = workAreaMap.find(desktopId);
|
||||
@@ -83,6 +85,12 @@ void MonitorWorkAreaHandler::AddWorkArea(const GUID& desktopId, HMONITOR monitor
|
||||
if (!workAreaMap.contains(desktopId))
|
||||
{
|
||||
workAreaMap[desktopId] = {};
|
||||
|
||||
auto desktopIdStr = FancyZonesUtils::GuidToString(desktopId);
|
||||
if (desktopIdStr)
|
||||
{
|
||||
Logger::info(L"Add work area on the desktop {}", desktopIdStr.value());
|
||||
}
|
||||
}
|
||||
auto& perDesktopData = workAreaMap[desktopId];
|
||||
perDesktopData[monitor] = std::move(workArea);
|
||||
|
||||
Reference in New Issue
Block a user