mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Add telemetry event for FZ editor (#1294)
* trace zones settings changes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "JsonHelpers.h"
|
||||
#include "RegistryHelpers.h"
|
||||
#include "ZoneSet.h"
|
||||
#include "trace.h"
|
||||
|
||||
#include <common/common.h>
|
||||
|
||||
@@ -498,6 +499,12 @@ namespace JSONHelpers
|
||||
root.SetNamedValue(L"devices", SerializeDeviceInfos());
|
||||
root.SetNamedValue(L"custom-zone-sets", SerializeCustomZoneSets());
|
||||
|
||||
auto before = json::from_file(jsonFilePath);
|
||||
if (!before.has_value() || before.value().Stringify() != root.Stringify())
|
||||
{
|
||||
Trace::FancyZones::DataChanged();
|
||||
}
|
||||
|
||||
json::to_file(jsonFilePath, root);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user