Fix regression re-enabling the Wild Pokemon tab

This commit is contained in:
GriffinR 2025-02-18 15:22:42 -05:00
parent 17c35a8d98
commit 27ec547ac1

View File

@ -915,7 +915,7 @@ void MainWindow::setLayoutOnlyMode(bool layoutOnly) {
this->ui->mainTabBar->setTabEnabled(MainTab::Events, mapEditingEnabled);
this->ui->mainTabBar->setTabEnabled(MainTab::Header, mapEditingEnabled);
this->ui->mainTabBar->setTabEnabled(MainTab::Connections, mapEditingEnabled);
this->ui->mainTabBar->setTabEnabled(MainTab::WildPokemon, mapEditingEnabled);
this->ui->mainTabBar->setTabEnabled(MainTab::WildPokemon, mapEditingEnabled && editor->project->wildEncountersLoaded);
this->ui->comboBox_LayoutSelector->setEnabled(mapEditingEnabled);
}