Browse Source

MainRootWindow.qml: PR CustomMainRootWindow: fix bug, empty loader visible as blank panel:

when clicking back button screen from any tool, it would go blank and
then it would collapse, because the loader was being emptied before the
drawer containing it closed completely
QGC4.4
davidsastresas 1 year ago committed by Julian Oes
parent
commit
b88616a67a
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 6
      src/ui/MainRootWindow.qml

6
src/ui/MainRootWindow.qml

@ -436,6 +436,11 @@ ApplicationWindow { @@ -436,6 +436,11 @@ ApplicationWindow {
property alias toolSource: toolDrawerLoader.source
property alias toolIcon: toolIcon.source
// Unload the loader only after closed, otherwise we will see a "blank" loader in the meantime
onClosed: {
toolDrawer.toolSource = ""
}
Rectangle {
id: toolDrawerToolbar
anchors.left: parent.left
@ -492,7 +497,6 @@ ApplicationWindow { @@ -492,7 +497,6 @@ ApplicationWindow {
width: (backTextLabel.x + backTextLabel.width) - backIcon.x
onClicked: {
toolDrawer.visible = false
toolDrawer.toolSource = ""
}
}
}

Loading…
Cancel
Save