mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 04:22:09 +08:00
ui/sidebar: do not send the userFlag while offroad (#31952)
old-commit-hash: e28edf874b4caa68a47326a98018a0e21fe22f58
This commit is contained in:
@@ -55,7 +55,7 @@ void Sidebar::mouseReleaseEvent(QMouseEvent *event) {
|
||||
flag_pressed = settings_pressed = false;
|
||||
update();
|
||||
}
|
||||
if (home_btn.contains(event->pos())) {
|
||||
if (onroad && home_btn.contains(event->pos())) {
|
||||
MessageBuilder msg;
|
||||
msg.initEvent().initUserFlag();
|
||||
pm->send("userFlag", msg);
|
||||
|
||||
Reference in New Issue
Block a user