Fix DPI options not enabling in Settings (N705)

This commit is contained in:
Nicolas Mailloux 2021-04-06 22:23:23 -04:00
parent 0e4d19b626
commit 03776b9b1f

View file

@ -155,10 +155,15 @@ settings::settings(QWidget *parent) :
} }
// DPI checkbox // 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"); 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_not_user_change = true;
ui->enableUiScalingCheckBox->click(); ui->enableUiScalingCheckBox->click();
} }