瀏覽代碼

LibGfx: Use `read_bool_entry()` to read theme flags

I didn't notice this function existed the first time around. Oops!
Sam Atkins 3 年之前
父節點
當前提交
d68268f791
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Userland/Libraries/LibGfx/SystemTheme.cpp

+ 1 - 2
Userland/Libraries/LibGfx/SystemTheme.cpp

@@ -42,8 +42,7 @@ Core::AnonymousBuffer load_system_theme(Core::ConfigFile const& file)
     };
     };
 
 
     auto get_flag = [&](auto& name) {
     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) {
     auto get_metric = [&](auto& name, auto role) {