mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-25 07:50:39 -05:00
Revert "UI: Only adjust size of properties on first draw"
This reverts commit 624a0da302.
This commit is contained in:
@@ -108,15 +108,12 @@ void OBSPropertiesView::ReloadProperties()
|
||||
|
||||
void OBSPropertiesView::RefreshProperties()
|
||||
{
|
||||
bool firstDraw = false;
|
||||
int h, v;
|
||||
GetScrollPos(h, v);
|
||||
|
||||
children.clear();
|
||||
if (widget)
|
||||
widget->deleteLater();
|
||||
else
|
||||
firstDraw = true;
|
||||
|
||||
widget = new QWidget();
|
||||
widget->setObjectName("PropertiesContainer");
|
||||
@@ -141,8 +138,7 @@ void OBSPropertiesView::RefreshProperties()
|
||||
setWidget(widget);
|
||||
SetScrollPos(h, v);
|
||||
setSizePolicy(mainPolicy);
|
||||
if (firstDraw)
|
||||
adjustSize();
|
||||
adjustSize();
|
||||
|
||||
lastFocused.clear();
|
||||
if (lastWidget) {
|
||||
|
||||
Reference in New Issue
Block a user