mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07: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)
|
void settings::on_enableUiScalingCheckBox_toggled(bool checked)
|
||||||
{
|
{
|
||||||
if(checked == true) {
|
if(checked == true) {
|
||||||
// Writing default value
|
// Writing default value depending on the device
|
||||||
string_writeconfig(".config/09-dpi/config", "187");
|
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");
|
string_writeconfig(".config/09-dpi/config-enabled", "true");
|
||||||
ui->uiScaleNumberLabel->show();
|
ui->uiScaleNumberLabel->show();
|
||||||
ui->uiScalingSlider->show();
|
ui->uiScalingSlider->show();
|
||||||
|
|
Loading…
Reference in a new issue