summaryrefslogtreecommitdiffstats
path: root/gui/pages/global/MultiMCPage.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-11-09 19:48:35 +0100
committerPetr Mrázek <peterix@gmail.com>2014-11-09 19:48:35 +0100
commit24a0635b62071aee56c090283b8c8527174be039 (patch)
treec6db5f75c70fd5d907fbe210d8d2b74a3c329666 /gui/pages/global/MultiMCPage.cpp
parent2e9284951c7364dc766a406099ce3a779773abb1 (diff)
downloadMultiMC-24a0635b62071aee56c090283b8c8527174be039.tar
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.gz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.lz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.tar.xz
MultiMC-24a0635b62071aee56c090283b8c8527174be039.zip
Allow changing the console font family
Diffstat (limited to 'gui/pages/global/MultiMCPage.cpp')
-rw-r--r--gui/pages/global/MultiMCPage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/pages/global/MultiMCPage.cpp b/gui/pages/global/MultiMCPage.cpp
index 4c050059..9e0a0ed8 100644
--- a/gui/pages/global/MultiMCPage.cpp
+++ b/gui/pages/global/MultiMCPage.cpp
@@ -293,6 +293,11 @@ void MultiMCPage::applySettings()
s->set("IconTheme", "multimc");
break;
}
+
+ // Console settings
+ QString consoleFontFamily = ui->consoleFont->currentFont().family();
+ s->set("ConsoleFont", consoleFontFamily);
+
// FTB
s->set("TrackFTBInstances", ui->trackFtbBox->isChecked());
s->set("FTBLauncherRoot", ui->ftbLauncherBox->text());
@@ -365,6 +370,12 @@ void MultiMCPage::loadSettings()
{
ui->themeComboBox->setCurrentIndex(0);
}
+
+ // Console settings
+ QString fontFamily = MMC->settings()->get("ConsoleFont").toString();
+ QFont consoleFont(fontFamily);
+ ui->consoleFont->setCurrentFont(consoleFont);
+
// FTB
ui->trackFtbBox->setChecked(s->get("TrackFTBInstances").toBool());
ui->ftbLauncherBox->setText(s->get("FTBLauncherRoot").toString());