From 1b574196701e84da0d48af8a42d2a57f273181e3 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Mon, 19 Sep 2022 22:10:33 +0200 Subject: [PATCH] UI: Update volume controls decay rate on profile switch Without this change the decay rate would only be updated when an audio source is added or when the volume meter itself is changed (e.g. from horizontal to vertical layout). --- UI/window-basic-main-profiles.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-main-profiles.cpp b/UI/window-basic-main-profiles.cpp index 2dc868e05..7984ab071 100644 --- a/UI/window-basic-main-profiles.cpp +++ b/UI/window-basic-main-profiles.cpp @@ -338,6 +338,7 @@ bool OBSBasic::CreateProfile(const std::string &newName, bool create_new, config_save_safe(App()->GlobalConfig(), "tmp", nullptr); UpdateTitleBar(); + UpdateVolumeControlsDecayRate(); Auth::Load(); @@ -614,6 +615,7 @@ void OBSBasic::on_actionRemoveProfile_triggered(bool skipConfirmation) blog(LOG_INFO, "------------------------------------------------"); UpdateTitleBar(); + UpdateVolumeControlsDecayRate(); Auth::Load(); @@ -785,6 +787,7 @@ void OBSBasic::ChangeProfile() RefreshProfiles(); config_save_safe(App()->GlobalConfig(), "tmp", nullptr); UpdateTitleBar(); + UpdateVolumeControlsDecayRate(); Auth::Load();