From 03776b9b1f0d6267c6643e0eb0fe7df03862c61c Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Tue, 6 Apr 2021 22:23:23 -0400 Subject: [PATCH] Fix DPI options not enabling in Settings (N705) --- settings.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(); }