frontend: Restrict audio meter update region

This commit is contained in:
Warchamp7
2026-01-23 16:18:30 -05:00
committed by Ryan Foster
parent 30633344e9
commit 8c04e6a3fe
+3 -1
View File
@@ -338,8 +338,10 @@ VolumeMeter::VolumeMeter(QWidget *parent, obs_source_t *source)
connect(updateTimer, &QTimer::timeout, this, [this]() {
if (needLayoutChange()) {
doLayout();
update();
} else {
update(getBarRect());
}
repaint();
});
connect(App(), &OBSApp::StyleChanged, this, &VolumeMeter::doLayout);