Fixed DPI settings

This commit is contained in:
Victor Tran 2018-08-22 00:52:31 +10:00
parent de68e95a8b
commit e409a6cb10
No known key found for this signature in database
GPG key ID: FBA10B22D602BAC1

View file

@ -339,7 +339,7 @@ InfoPaneDropdown::InfoPaneDropdown(WId MainWindowId, QWidget *parent) :
ui->decorativeColorThemeRadio->setChecked(true);
}
int dpi = sessionSettings->value("screen/dpi", 96).toInt();
int dpi = settings.value("screen/dpi", 96).toInt();
switch (dpi) {
case 96:
ui->dpi100->setChecked(true);
@ -3238,28 +3238,28 @@ void InfoPaneDropdown::updateAccentColourBox() {
void InfoPaneDropdown::on_dpi100_toggled(bool checked)
{
if (checked) {
settings->setValue("screen/dpi", 96);
settings.setValue("screen/dpi", 96);
}
}
void InfoPaneDropdown::on_dpi150_toggled(bool checked)
{
if (checked) {
settings->setValue("screen/dpi", 144);
settings.setValue("screen/dpi", 144);
}
}
void InfoPaneDropdown::on_dpi200_toggled(bool checked)
{
if (checked) {
settings->setValue("screen/dpi", 192);
settings.setValue("screen/dpi", 192);
}
}
void InfoPaneDropdown::on_dpi300_toggled(bool checked)
{
if (checked) {
settings->setValue("screen/dpi", 288);
settings.setValue("screen/dpi", 288);
}
}