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:
parent
34d577d748
commit
8184fa10a3
2 changed files with 4 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue