mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-25 17:25:38 -05:00
Raise supplemental windows when reactivated
This commit is contained in:
@@ -1802,12 +1802,14 @@ void MainWindow::on_actionEdit_Shortcuts_triggered()
|
||||
if (!shortcutsEditor)
|
||||
initShortcutsEditor();
|
||||
|
||||
if (shortcutsEditor->isHidden())
|
||||
if (shortcutsEditor->isHidden()) {
|
||||
shortcutsEditor->show();
|
||||
else if (shortcutsEditor->isMinimized())
|
||||
} else if (shortcutsEditor->isMinimized()) {
|
||||
shortcutsEditor->showNormal();
|
||||
else
|
||||
} else {
|
||||
shortcutsEditor->raise();
|
||||
shortcutsEditor->activateWindow();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::initShortcutsEditor() {
|
||||
@@ -3028,6 +3030,7 @@ void MainWindow::on_actionTileset_Editor_triggered()
|
||||
} else if (this->tilesetEditor->isMinimized()) {
|
||||
this->tilesetEditor->showNormal();
|
||||
} else {
|
||||
this->tilesetEditor->raise();
|
||||
this->tilesetEditor->activateWindow();
|
||||
}
|
||||
|
||||
@@ -3087,6 +3090,7 @@ void MainWindow::on_actionEdit_Preferences_triggered() {
|
||||
} else if (preferenceEditor->isMinimized()) {
|
||||
preferenceEditor->showNormal();
|
||||
} else {
|
||||
preferenceEditor->raise();
|
||||
preferenceEditor->activateWindow();
|
||||
}
|
||||
}
|
||||
@@ -3175,6 +3179,7 @@ void MainWindow::on_actionRegion_Map_Editor_triggered() {
|
||||
} else if (this->regionMapEditor->isMinimized()) {
|
||||
this->regionMapEditor->showNormal();
|
||||
} else {
|
||||
this->regionMapEditor->raise();
|
||||
this->regionMapEditor->activateWindow();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -792,6 +792,7 @@ void TilesetEditor::on_actionChange_Palettes_triggered()
|
||||
} else if (this->paletteEditor->isMinimized()) {
|
||||
this->paletteEditor->showNormal();
|
||||
} else {
|
||||
this->paletteEditor->raise();
|
||||
this->paletteEditor->activateWindow();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user