From 8cf3144428357bd3f3d4a35e5d551a3a904e8475 Mon Sep 17 00:00:00 2001 From: Nikita Zimin Date: Mon, 20 Nov 2023 22:40:47 +0300 Subject: [PATCH] Save/restore View Keyboard flag. --- emulator/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emulator/mainwindow.cpp b/emulator/mainwindow.cpp index 75c3650..428a1ff 100644 --- a/emulator/mainwindow.cpp +++ b/emulator/mainwindow.cpp @@ -220,6 +220,7 @@ void MainWindow::saveSettings(QSettings * settings) settings->setValue("MainWindow/Geometry", saveGeometry()); settings->setValue("MainWindow/WindowState", saveState()); + settings->setValue("MainWindow/KeyboardView", m_keyboard->isVisible()); settings->setValue("MainWindow/ConsoleView", m_dockConsole->isVisible()); settings->setValue("MainWindow/DebugView", m_dockDebug->isVisible()); settings->setValue("MainWindow/DisasmView", m_dockDisasm->isVisible()); @@ -240,6 +241,7 @@ void MainWindow::restoreSettings(QSettings * settings) restoreGeometry(settings->value("MainWindow/Geometry").toByteArray()); restoreState(settings->value("MainWindow/WindowState").toByteArray()); + m_keyboard->setVisible(settings->value("MainWindow/KeyboardView", true).toBool()); m_dockConsole->setVisible(settings->value("MainWindow/ConsoleView", false).toBool()); m_dockDebug->setVisible(settings->value("MainWindow/DebugView", false).toBool()); m_dockDisasm->setVisible(settings->value("MainWindow/DisasmView", false).toBool());