mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGfx: Use read_bool_entry()
to read theme flags
I didn't notice this function existed the first time around. Oops!
This commit is contained in:
parent
5e9cf47627
commit
d68268f791
Notes:
sideshowbarker
2024-07-18 01:28:23 +09:00
Author: https://github.com/AtkinsSJ
Commit: d68268f791
Pull-request: https://github.com/SerenityOS/serenity/pull/10750
Reviewed-by: https://github.com/BenWiederhake ✅
1 changed files with 1 additions and 2 deletions
|
@ -42,8 +42,7 @@ Core::AnonymousBuffer load_system_theme(Core::ConfigFile const& file)
|
|||
};
|
||||
|
||||
auto get_flag = [&](auto& name) {
|
||||
auto flag_string = file.read_entry("Flags", name);
|
||||
return flag_string.equals_ignoring_case("true");
|
||||
return file.read_bool_entry("Flags", name, false);
|
||||
};
|
||||
|
||||
auto get_metric = [&](auto& name, auto role) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue