Skip to content

Commit

Permalink
Save/restore View Keyboard flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Nov 20, 2023
1 parent 7e4e9f0 commit 8cf3144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emulator/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit 8cf3144

Please # to comment.