mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-23 07:59:23 -04:00
UI: Remove unnecessary ProxyStyle usage
This commit is contained in:
@@ -332,9 +332,6 @@ OBSBasic::OBSBasic(QWidget *parent)
|
||||
|
||||
ui->setupUi(this);
|
||||
ui->previewDisabledWidget->setVisible(false);
|
||||
QStyle *contextBarStyle = new OBSContextBarProxyStyle();
|
||||
contextBarStyle->setParent(ui->contextContainer);
|
||||
ui->contextContainer->setStyle(contextBarStyle);
|
||||
ui->broadcastButton->setVisible(false);
|
||||
|
||||
startingDockLayout = saveState();
|
||||
@@ -11142,19 +11139,6 @@ float OBSBasic::GetDevicePixelRatio()
|
||||
|
||||
void OBSBasic::ThemeChanged()
|
||||
{
|
||||
/* Since volume/media sliders are using QProxyStyle, they are not
|
||||
* updated when themes are changed, so re-initialize them. */
|
||||
vector<OBSSource> sources;
|
||||
for (size_t i = 0; i != volumes.size(); i++)
|
||||
sources.emplace_back(volumes[i]->GetSource());
|
||||
|
||||
ClearVolumeControls();
|
||||
|
||||
for (const auto &source : sources)
|
||||
ActivateAudioSource(source);
|
||||
|
||||
UpdateContextBar(true);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_THEME_CHANGED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user