mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 11:52:07 +08:00
ui: fix spacing from upstream merge
This commit is contained in:
@@ -184,7 +184,7 @@ void OnroadWindow::mousePressEvent(QMouseEvent* e) {
|
||||
if (wakeScreenTimeout()) {
|
||||
// Switch between map and sidebar when using navigate on openpilot
|
||||
bool sidebarVisible = geometry().x() > 0;
|
||||
bool show_map = uiState()->scene.navigate_on_openpilot ? sidebarVisible : !sidebarVisible;
|
||||
bool show_map = uiState()->scene.navigate_on_openpilot ? sidebarVisible : !sidebarVisible;
|
||||
map->setVisible(show_map && !map->isVisible());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user