diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2021-09-11 23:40:59 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 17:15:30 +0200 |
commit | 677aa7b769bc23fa0d5a141407c94ede74220a2a (patch) | |
tree | dd460f2bed23318ae91a5bef06fb0b40ef9c932a /Userland/Applications/Run | |
parent | dd0cc58d6c2a0a2855341060556c2df6b47cf27f (diff) | |
download | serenity-677aa7b769bc23fa0d5a141407c94ede74220a2a.zip |
PixelPaint: Use config to get default values for Guides/Rulers/PixelGrid
Someone may not want to have these things enabled by default on every
startup, but toggle them on manually. So instead of having hard-coded
everything to be enabled by default, we now query LibConfig to find
out what the preference is. These values can still always be changed
from the Menus / with shortcuts.
It's not really ideal querying LibConfig twice, but when initializing
the menu we may not have an active editor, so we need to get the
value for both the menu checkbox as well as the internal property.
This shouldn't be too much of a big deal since LibConfig caches the
values anyway :^)
Diffstat (limited to 'Userland/Applications/Run')
0 files changed, 0 insertions, 0 deletions