Add telemetry event for FZ editor (#1294)

* trace zones settings changes
This commit is contained in:
Seraphima Zykova
2020-02-17 19:40:02 +03:00
committed by GitHub
parent 93f88800b8
commit 604070763d
4 changed files with 96 additions and 3 deletions

View File

@@ -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);
}