mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-28 16:16:21 -04:00
UI: Inline OBSBasic::ThemeChanged()
The majority of this method got removed in a prior commit [1]. Let's
inline the rest.
[1] 8dcfae9a39
This commit is contained in:
@@ -536,7 +536,10 @@ OBSBasic::OBSBasic(QWidget *parent)
|
||||
connect(ui->broadcastButton, &QPushButton::clicked, this,
|
||||
&OBSBasic::BroadcastButtonClicked);
|
||||
|
||||
connect(App(), &OBSApp::StyleChanged, this, &OBSBasic::ThemeChanged);
|
||||
connect(App(), &OBSApp::StyleChanged, this, [this]() {
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_THEME_CHANGED);
|
||||
});
|
||||
|
||||
QActionGroup *actionGroup = new QActionGroup(this);
|
||||
actionGroup->addAction(ui->actionSceneListMode);
|
||||
@@ -11142,9 +11145,3 @@ float OBSBasic::GetDevicePixelRatio()
|
||||
{
|
||||
return dpi;
|
||||
}
|
||||
|
||||
void OBSBasic::ThemeChanged()
|
||||
{
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_THEME_CHANGED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user