Skip to content

Commit 95167b7

Browse files
committed
[WIP] VolumeMeter cleanup + paint optimizations maybe
1 parent ce7892e commit 95167b7

File tree

3 files changed

+196
-381
lines changed

3 files changed

+196
-381
lines changed

frontend/widgets/VolControl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ VolControl::VolControl(obs_source_t *source, bool vertical, QWidget *parent)
9898
bool muted = obs_source_muted(source);
9999
bool unassigned = isSourceUnassigned(source);
100100

101-
volMeter->muted = muted || unassigned;
101+
volMeter->setMuted(muted || unassigned);
102102

103103
setLayoutVertical(vertical);
104104
setName(sourceName);
@@ -694,7 +694,7 @@ void VolControl::updateMixerState()
694694
bool showAsMonitored = monitoringType != OBS_MONITORING_TYPE_NONE;
695695
bool showAsUnassigned = !muted && unassigned;
696696

697-
volMeter->muted = (showAsMuted || showAsUnassigned) && !showAsMonitored;
697+
volMeter->setMuted((showAsMuted || showAsUnassigned) && !showAsMonitored);
698698

699699
// Qt doesn't support overriding the QPushButton icon using pseudo state selectors like :checked
700700
// in QSS so we set a checked class selector on the button to be used instead.

0 commit comments

Comments
 (0)