mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Use OBSBasic::Get() in all places
This reduces duplicated code when getting the OBSBasic context.
This commit is contained in:
@@ -73,7 +73,7 @@ OBSAdvAudioCtrl::OBSAdvAudioCtrl(QGridLayout *, obs_source_t *source_) : source(
|
||||
labelL->setText("L");
|
||||
labelR->setText("R");
|
||||
|
||||
OBSBasic *main = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
|
||||
QIcon sourceIcon = main->GetSourceIcon(obs_source_get_id(source));
|
||||
QPixmap pixmap = sourceIcon.pixmap(QSize(16, 16));
|
||||
|
||||
Reference in New Issue
Block a user