-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FancyZones] Set 3-zones PriorityGrid as default layout #6248
[FancyZones] Set 3-zones PriorityGrid as default layout #6248
Conversation
} | ||
else | ||
{ | ||
deviceInfoMap[deviceId] = DeviceInfoData{ ZoneSetData{ NonLocalizable::NullStr, ZoneSetLayoutType::Blank } }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add anything into deviceInfoMap
in this case? I remember that ZoneSetLayoutType::Blank
has been added for some purpose, but I can't recall why exactly.
Everywhere there are checks if zone set UUID is valid and ZoneSetLayoutType
is not Blank
. It won't be saved in the settings file and just takes a place in the memory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check whether Blank
type and checks are still needed at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep in mind that we will add functionality to the editor to set no zoneset on a desktop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔼 That's why it is still needed :)
ec82119
to
21be412
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested manually as described, works well. Unit tests passed.
21be412
to
58dc856
Compare
wil::unique_cotaskmem_string guidString; | ||
if (result == S_OK && SUCCEEDED(StringFromCLSID(guid, &guidString))) | ||
{ | ||
DeviceInfoData defaultDeviceInfoData{ ZoneSetData{ guidString.get(), ZoneSetLayoutType::PriorityGrid }, true, 16, 3 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace true
, 16
and 3
with consts or explicit argument names?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Code looks good, tested and works as expected. |
Summary of the Pull Request
What is this about?
Instead of no-layout at FZ startup, now 3-zones PriorityGrid is applied by default.
PR Checklist
Validation Steps Performed
How does someone test & validate?