Detect if the map is open
This commit is contained in:
@@ -41,3 +41,8 @@ void MapPanel::toggleMapSettings() {
|
||||
emit mapPanelRequested();
|
||||
show();
|
||||
}
|
||||
|
||||
void MapPanel::setVisible(bool visible) {
|
||||
QFrame::setVisible(visible);
|
||||
uiState()->scene.map_open = visible;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ class MapPanel : public QFrame {
|
||||
|
||||
public:
|
||||
explicit MapPanel(const QMapLibre::Settings &settings, QWidget *parent = nullptr);
|
||||
void setVisible(bool visible);
|
||||
|
||||
signals:
|
||||
void mapPanelRequested();
|
||||
|
||||
Reference in New Issue
Block a user