mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
Update isLayoutDefault to use DefaultValues constants instead of hardcoded values
Co-authored-by: crutkas <1462282+crutkas@users.noreply.github.com>
This commit is contained in:
committed by
Gordon Lam (SH)
parent
f97d680fb1
commit
abc574d486
@@ -20,10 +20,10 @@ namespace
|
||||
bool isLayoutDefault(const LayoutData& layout)
|
||||
{
|
||||
return layout.type == FancyZonesDataTypes::ZoneSetLayoutType::PriorityGrid &&
|
||||
layout.zoneCount == 3 &&
|
||||
layout.spacing == 16 &&
|
||||
layout.showSpacing == true &&
|
||||
layout.sensitivityRadius == 20;
|
||||
layout.zoneCount == DefaultValues::ZoneCount &&
|
||||
layout.spacing == DefaultValues::Spacing &&
|
||||
layout.showSpacing == DefaultValues::ShowSpacing &&
|
||||
layout.sensitivityRadius == DefaultValues::SensitivityRadius;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user