mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-09 15:02:05 +08:00
Qt ui: only stop repeat sounds (#2577)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user