DesktopSystemDialog: Ensure we don't set the size until visible

Otherwise the value gets set by Qt somewhere and the binding gets
disconnected, setting a random, weird, size.
wilder-5.24
Aleix Pol 4 years ago
parent e2ecf588f6
commit b7ec1f1455
  1. 4
      components/dialogs/DesktopSystemDialog.qml

@ -53,8 +53,8 @@ Kirigami.AbstractApplicationWindow {
*/
property bool acceptable: true
width: column.implicitWidth
height: column.implicitHeight + footer.implicitHeight
width: visible ? column.implicitWidth : 0
height: visible ? column.implicitHeight + footer.implicitHeight : 0
minimumHeight: column.Layout.minimumHeight + footer.implicitHeight
minimumWidth: column.Layout.minimumWidth

Loading…
Cancel
Save