Qt ui: only stop repeat sounds (#2577)

old-commit-hash: 1e48b2458e
commatwo_master
Willem Melching 5 years ago committed by GitHub
parent d6531eee62
commit ba77d62542
  1. 5
      selfdrive/ui/qt/qt_sound.cc

@ -18,7 +18,10 @@ bool QtSound::play(AudibleAlert alert) {
void QtSound::stop() {
for (auto &kv : sounds) {
kv.second.stop();
// Only stop repeating sounds
if (sound_map[kv.first].second != 0) {
kv.second.stop();
}
}
}

Loading…
Cancel
Save