diff --git a/settings.cpp b/settings.cpp index b32feec..da7f35f 100644 --- a/settings.cpp +++ b/settings.cpp @@ -155,10 +155,15 @@ settings::settings(QWidget *parent) : } // DPI checkbox - if(checkconfig(".config/09-dpi/config") != false) { + string_checkconfig(".config/09-dpi/config"); + // Check if the string is a number + if(checkconfig_str_val == "false") { string_writeconfig(".config/09-dpi/config-enabled", "false"); } - if(checkconfig_rw(".config/09-dpi/config-enabled") == true) { + else { + string_writeconfig(".config/09-dpi/config-enabled", "true"); + } + if(checkconfig(".config/09-dpi/config-enabled") == true) { ui_not_user_change = true; ui->enableUiScalingCheckBox->click(); }