Fix DPI settings

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

View file

@ -3238,28 +3238,28 @@ void InfoPaneDropdown::updateAccentColourBox() {
void InfoPaneDropdown::on_dpi100_toggled(bool checked)
{
if (checked) {
sessionSettings->setValue("screen/dpi", 96);
settings->setValue("screen/dpi", 96);
}
}
void InfoPaneDropdown::on_dpi150_toggled(bool checked)
{
if (checked) {
sessionSettings->setValue("screen/dpi", 144);
settings->setValue("screen/dpi", 144);
}
}
void InfoPaneDropdown::on_dpi200_toggled(bool checked)
{
if (checked) {
sessionSettings->setValue("screen/dpi", 192);
settings->setValue("screen/dpi", 192);
}
}
void InfoPaneDropdown::on_dpi300_toggled(bool checked)
{
if (checked) {
sessionSettings->setValue("screen/dpi", 288);
settings->setValue("screen/dpi", 288);
}
}