mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
[FancyZones]Fix reapplying default layout (#18106)
This commit is contained in:
@@ -420,8 +420,9 @@ bool AppliedLayouts::ApplyDefaultLayout(const FancyZonesDataTypes::DeviceIdData&
|
||||
|
||||
m_layouts[deviceId] = std::move(layout);
|
||||
|
||||
SaveData();
|
||||
|
||||
// Saving default layout data doesn't make sense, since it's ignored on parsing.
|
||||
// Given that default layouts are ignored when parsing,
|
||||
// saving default data can cause an infinite loop of reading, reapplying default layout and saving the same file.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user