Qt ui: only stop repeat sounds (#2577)

pull/2564/head
Willem Melching 5 years ago committed by GitHub
parent 7d9fa1f85e
commit 1e48b2458e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      selfdrive/ui/qt/qt_sound.cc

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

Loading…
Cancel
Save