Merge branch 'master' into border-hover

This commit is contained in:
GriffinR 2022-12-03 08:51:58 -05:00 committed by GitHub
commit b60e8cd732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -13,6 +13,9 @@ The **"Breaking Changes"** listed below are changes that have been made in the d
### Changed ### Changed
- Hovering on border metatiles with the mouse will now display their information in the bottom bar. - Hovering on border metatiles with the mouse will now display their information in the bottom bar.
### Fixed
- Fix New Map settings being preserved when switching projects.
## [5.0.0] - 2022-10-30 ## [5.0.0] - 2022-10-30
### Breaking Changes ### Breaking Changes
- Proper support for pokefirered's clone objects was added, which requires the changes made in [pokefirered/#484](https://github.com/pret/pokefirered/pull/484). - Proper support for pokefirered's clone objects was added, which requires the changes made in [pokefirered/#484](https://github.com/pret/pokefirered/pull/484).

View file

@ -329,7 +329,7 @@ private:
bool isProgrammaticEventTabChange; bool isProgrammaticEventTabChange;
bool projectHasUnsavedChanges; bool projectHasUnsavedChanges;
bool projectOpenFailure = false; bool projectOpenFailure = false;
bool openedNewMapDialog = false; bool newMapDefaultsSet = false;
MapSortOrder mapSortOrder; MapSortOrder mapSortOrder;

View file

@ -531,6 +531,7 @@ bool MainWindow::openProject(QString dir) {
this->closeSupplementaryWindows(); this->closeSupplementaryWindows();
this->setProjectSpecificUIVisibility(); this->setProjectSpecificUIVisibility();
this->newMapDefaultsSet = false;
Scripting::init(this); Scripting::init(this);
bool already_open = isProjectOpen() && (editor->project->root == dir); bool already_open = isProjectOpen() && (editor->project->root == dir);
@ -1193,9 +1194,9 @@ void MainWindow::onNewMapCreated() {
} }
void MainWindow::openNewMapPopupWindow() { void MainWindow::openNewMapPopupWindow() {
if (!openedNewMapDialog) { if (!this->newMapDefaultsSet) {
NewMapPopup::setDefaultSettings(this->editor->project); NewMapPopup::setDefaultSettings(this->editor->project);
openedNewMapDialog = true; this->newMapDefaultsSet = true;
} }
if (!this->newMapPrompt) { if (!this->newMapPrompt) {
this->newMapPrompt = new NewMapPopup(this, this->editor->project); this->newMapPrompt = new NewMapPopup(this, this->editor->project);