mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
Revert "UI: Only adjust size of properties on first draw"
This reverts commit 624a0da302
.
This commit is contained in:
parent
7258a58904
commit
d277a7541f
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue