diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 04:52:13 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-09-08 04:52:13 +0200 |
commit | 2aad510c84b3abdda07b80d1ae0ced70c52e80ed (patch) | |
tree | be28f5608d5c58007c3239d2fa817ce9fcb9aa08 /src/citra_qt | |
parent | Merge pull request #1124 from yuriks/trim-mru (diff) | |
parent | citra-qt: Separate UI layout state in a separate section of the config (diff) | |
download | yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar.gz yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar.bz2 yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar.lz yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar.xz yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.tar.zst yuzu-2aad510c84b3abdda07b80d1ae0ced70c52e80ed.zip |
Diffstat (limited to 'src/citra_qt')
-rw-r--r-- | src/citra_qt/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 65b5fc9d6..609886dfd 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -130,11 +130,14 @@ GMainWindow::GMainWindow() : emu_thread(nullptr) // Restore UI state QSettings settings; + + settings.beginGroup("UILayout"); restoreGeometry(settings.value("geometry").toByteArray()); restoreState(settings.value("state").toByteArray()); render_window->restoreGeometry(settings.value("geometryRenderWindow").toByteArray()); microProfileDialog->restoreGeometry(settings.value("microProfileDialogGeometry").toByteArray()); microProfileDialog->setVisible(settings.value("microProfileDialogVisible").toBool()); + settings.endGroup(); ui.action_Use_Hardware_Renderer->setChecked(Settings::values.use_hw_renderer); SetHardwareRendererEnabled(ui.action_Use_Hardware_Renderer->isChecked()); @@ -439,11 +442,15 @@ void GMainWindow::OnConfigure() { void GMainWindow::closeEvent(QCloseEvent* event) { // Save window layout QSettings settings(QSettings::IniFormat, QSettings::UserScope, "Citra team", "Citra"); + + settings.beginGroup("UILayout"); settings.setValue("geometry", saveGeometry()); settings.setValue("state", saveState()); settings.setValue("geometryRenderWindow", render_window->saveGeometry()); settings.setValue("microProfileDialogGeometry", microProfileDialog->saveGeometry()); settings.setValue("microProfileDialogVisible", microProfileDialog->isVisible()); + settings.endGroup(); + settings.setValue("singleWindowMode", ui.action_Single_Window_Mode->isChecked()); settings.setValue("displayTitleBars", ui.actionDisplay_widget_title_bars->isChecked()); settings.setValue("firstStart", false); |