mirror of
https://github.com/huderlem/porymap.git
synced 2026-03-21 17:45:44 -05:00
Fix regression to 'Open Project in Text Editor'
This commit is contained in:
parent
7d6bbca0c2
commit
0706a62d3a
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user