summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run
diff options
context:
space:
mode:
authorMustafa Quraish <mustafaq9@gmail.com>2021-09-11 23:40:59 -0400
committerAndreas Kling <kling@serenityos.org>2021-09-12 17:15:30 +0200
commit677aa7b769bc23fa0d5a141407c94ede74220a2a (patch)
treedd460f2bed23318ae91a5bef06fb0b40ef9c932a /Userland/Applications/Run
parentdd0cc58d6c2a0a2855341060556c2df6b47cf27f (diff)
downloadserenity-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