mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 07:37:21 -08:00
Fixed DPI scaling Settings bug
This commit is contained in:
parent
df716a2e62
commit
40ca616eee
1 changed files with 11 additions and 2 deletions
13
settings.cpp
13
settings.cpp
|
@ -611,8 +611,17 @@ void settings::on_enableLockscreenCheckBox_toggled(bool checked)
|
|||
void settings::on_enableUiScalingCheckBox_toggled(bool checked)
|
||||
{
|
||||
if(checked == true) {
|
||||
// Writing default value
|
||||
string_writeconfig(".config/09-dpi/config", "187");
|
||||
// Writing default value depending on the device
|
||||
string_checkconfig("/opt/inkbox_device");
|
||||
if(checkconfig_str_val == "n705\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "187");
|
||||
}
|
||||
if(checkconfig_str_val == "n905\n") {
|
||||
string_writeconfig(".config/09-dpi/config", "160");
|
||||
}
|
||||
else {
|
||||
string_writeconfig(".config/09-dpi/config", "187");
|
||||
}
|
||||
string_writeconfig(".config/09-dpi/config-enabled", "true");
|
||||
ui->uiScaleNumberLabel->show();
|
||||
ui->uiScalingSlider->show();
|
||||
|
|
Loading…
Reference in a new issue