mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Restrict audio meter update region
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user