UI: Change name of ResetProxyStyleSliders function

Changes the name to ThemeChanged, as the function now does more than
reset the volume sliders.
This commit is contained in:
cg2121
2023-06-04 05:08:00 -05:00
committed by Lain
parent a609cfb2f0
commit 5cc319d97f
2 changed files with 3 additions and 4 deletions

View File

@@ -520,8 +520,7 @@ OBSBasic::OBSBasic(QWidget *parent)
connect(ui->broadcastButton, &QPushButton::clicked, this,
&OBSBasic::BroadcastButtonClicked);
connect(App(), &OBSApp::StyleChanged, this,
&OBSBasic::ResetProxyStyleSliders);
connect(App(), &OBSApp::StyleChanged, this, &OBSBasic::ThemeChanged);
QActionGroup *actionGroup = new QActionGroup(this);
actionGroup->addAction(ui->actionSceneListMode);
@@ -10903,7 +10902,7 @@ float OBSBasic::GetDevicePixelRatio()
return dpi;
}
void OBSBasic::ResetProxyStyleSliders()
void OBSBasic::ThemeChanged()
{
/* Since volume/media sliders are using QProxyStyle, they are not
* updated when themes are changed, so re-initialize them. */