Raise supplemental windows when reactivated
This commit is contained in:
parent
c3b9de61de
commit
c27ea49fcd
3 changed files with 10 additions and 3 deletions
|
@ -43,6 +43,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
|
||||||
- Fixed a bug where saving the tileset editor would reselect the main editor's first selected metatile.
|
- Fixed a bug where saving the tileset editor would reselect the main editor's first selected metatile.
|
||||||
- Fix crashes / unexpected behavior if certain scripting API functions are given invalid palette or tile numbers.
|
- Fix crashes / unexpected behavior if certain scripting API functions are given invalid palette or tile numbers.
|
||||||
- Silence unnecessary error logging when parsing C defines Porymap doesn't use.
|
- Silence unnecessary error logging when parsing C defines Porymap doesn't use.
|
||||||
|
- Fix some windows like the Tileset Editor not raising to the front when reactivated.
|
||||||
|
|
||||||
## [4.5.0] - 2021-12-26
|
## [4.5.0] - 2021-12-26
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1802,12 +1802,14 @@ void MainWindow::on_actionEdit_Shortcuts_triggered()
|
||||||
if (!shortcutsEditor)
|
if (!shortcutsEditor)
|
||||||
initShortcutsEditor();
|
initShortcutsEditor();
|
||||||
|
|
||||||
if (shortcutsEditor->isHidden())
|
if (shortcutsEditor->isHidden()) {
|
||||||
shortcutsEditor->show();
|
shortcutsEditor->show();
|
||||||
else if (shortcutsEditor->isMinimized())
|
} else if (shortcutsEditor->isMinimized()) {
|
||||||
shortcutsEditor->showNormal();
|
shortcutsEditor->showNormal();
|
||||||
else
|
} else {
|
||||||
|
shortcutsEditor->raise();
|
||||||
shortcutsEditor->activateWindow();
|
shortcutsEditor->activateWindow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::initShortcutsEditor() {
|
void MainWindow::initShortcutsEditor() {
|
||||||
|
@ -3028,6 +3030,7 @@ void MainWindow::on_actionTileset_Editor_triggered()
|
||||||
} else if (this->tilesetEditor->isMinimized()) {
|
} else if (this->tilesetEditor->isMinimized()) {
|
||||||
this->tilesetEditor->showNormal();
|
this->tilesetEditor->showNormal();
|
||||||
} else {
|
} else {
|
||||||
|
this->tilesetEditor->raise();
|
||||||
this->tilesetEditor->activateWindow();
|
this->tilesetEditor->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3087,6 +3090,7 @@ void MainWindow::on_actionEdit_Preferences_triggered() {
|
||||||
} else if (preferenceEditor->isMinimized()) {
|
} else if (preferenceEditor->isMinimized()) {
|
||||||
preferenceEditor->showNormal();
|
preferenceEditor->showNormal();
|
||||||
} else {
|
} else {
|
||||||
|
preferenceEditor->raise();
|
||||||
preferenceEditor->activateWindow();
|
preferenceEditor->activateWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3175,6 +3179,7 @@ void MainWindow::on_actionRegion_Map_Editor_triggered() {
|
||||||
} else if (this->regionMapEditor->isMinimized()) {
|
} else if (this->regionMapEditor->isMinimized()) {
|
||||||
this->regionMapEditor->showNormal();
|
this->regionMapEditor->showNormal();
|
||||||
} else {
|
} else {
|
||||||
|
this->regionMapEditor->raise();
|
||||||
this->regionMapEditor->activateWindow();
|
this->regionMapEditor->activateWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -792,6 +792,7 @@ void TilesetEditor::on_actionChange_Palettes_triggered()
|
||||||
} else if (this->paletteEditor->isMinimized()) {
|
} else if (this->paletteEditor->isMinimized()) {
|
||||||
this->paletteEditor->showNormal();
|
this->paletteEditor->showNormal();
|
||||||
} else {
|
} else {
|
||||||
|
this->paletteEditor->raise();
|
||||||
this->paletteEditor->activateWindow();
|
this->paletteEditor->activateWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue