Detect if the map is open

This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 2bc95d9bc7
commit 3af959128d
5 changed files with 22 additions and 13 deletions

View File

@@ -41,3 +41,8 @@ void MapPanel::toggleMapSettings() {
emit mapPanelRequested();
show();
}
void MapPanel::setVisible(bool visible) {
QFrame::setVisible(visible);
uiState()->scene.map_open = visible;
}