diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fa85bbf4..315d6bda 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -437,7 +437,7 @@ void MainWindow::initEditor() { connect(ui->toolButton_deleteEvent, &QAbstractButton::clicked, this->editor, &Editor::deleteSelectedEvents); connect(ui->graphicsView_Connections, &ConnectionsView::pressedDelete, this->editor, &Editor::removeSelectedConnection); - this->loadUserSettings(); + loadUserSettings(); undoAction = editor->editGroup.createUndoAction(this, tr("&Undo")); undoAction->setObjectName("action_Undo"); @@ -462,8 +462,6 @@ void MainWindow::initEditor() { ui->menuEdit->addAction(showHistory); - refreshRecentProjectsMenu(); - // Toggle an asterisk in the window title when the undo state is changed connect(&editor->editGroup, &QUndoGroup::indexChanged, this, &MainWindow::updateWindowTitle); @@ -718,6 +716,9 @@ void MainWindow::loadUserSettings() { setTheme(porymapConfig.theme); setDivingMapsVisible(porymapConfig.showDiveEmergeMaps); + + togglePreferenceSpecificUi(); + refreshRecentProjectsMenu(); } void MainWindow::restoreWindowState() {