Skip to content

Commit

Permalink
More attempts to debounce audio UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticial committed Sep 15, 2023
1 parent af34bb6 commit 643e25e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,15 @@ void AudioSelectorWidget::volume_changed(double volume){
// if (m_slider_active.load(std::memory_order_acquire)){
// return;
// }
QMetaObject::invokeMethod(this, [this, volume]{
refresh_volume(volume);
QMetaObject::invokeMethod(this, [this]{
// refresh_volume(volume);
refresh_volume(m_session.output_volume());
}, Qt::QueuedConnection); // Queued due to potential recursive call to the same lock.
}
void AudioSelectorWidget::display_changed(AudioOption::AudioDisplayType display){
QMetaObject::invokeMethod(this, [this, display]{
refresh_display(display);
});
QMetaObject::invokeMethod(this, [this]{
refresh_display(m_session.display_type());
}, Qt::QueuedConnection); // Queued due to potential recursive call to the same lock.
}


Expand Down

0 comments on commit 643e25e

Please sign in to comment.