Fix regression to 'Open Project in Text Editor'

This commit is contained in:
GriffinR 2025-09-28 18:01:12 -04:00
parent 7d6bbca0c2
commit 0706a62d3a

View File

@ -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() {