Переглянути джерело

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).
PatTheMav 3 роки тому
батько
коміт
1b57419670
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      UI/window-basic-main-profiles.cpp

+ 3 - 0
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);
 	config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
 	UpdateTitleBar();
 	UpdateTitleBar();
+	UpdateVolumeControlsDecayRate();
 
 
 	Auth::Load();
 	Auth::Load();
 
 
@@ -614,6 +615,7 @@ void OBSBasic::on_actionRemoveProfile_triggered(bool skipConfirmation)
 	blog(LOG_INFO, "------------------------------------------------");
 	blog(LOG_INFO, "------------------------------------------------");
 
 
 	UpdateTitleBar();
 	UpdateTitleBar();
+	UpdateVolumeControlsDecayRate();
 
 
 	Auth::Load();
 	Auth::Load();
 
 
@@ -785,6 +787,7 @@ void OBSBasic::ChangeProfile()
 	RefreshProfiles();
 	RefreshProfiles();
 	config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
 	config_save_safe(App()->GlobalConfig(), "tmp", nullptr);
 	UpdateTitleBar();
 	UpdateTitleBar();
+	UpdateVolumeControlsDecayRate();
 
 
 	Auth::Load();
 	Auth::Load();