mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-31 23:38:48 +02:00
[ui] bugfix : external files now closable in Viewer
This commit is contained in:
parent
2b2c5a1baf
commit
887537e8bc
1 changed files with 7 additions and 6 deletions
|
@ -732,15 +732,16 @@ FocusScope {
|
|||
height: contentHeight
|
||||
}
|
||||
|
||||
// button to clear currently displayed node
|
||||
// button to clear currently displayed file
|
||||
MaterialToolButton {
|
||||
id: clearDisplayedNode
|
||||
id: clearViewerButton
|
||||
text: MaterialIcons.close
|
||||
ToolTip.text: "Clear node"
|
||||
enabled: root.displayedNode
|
||||
visible: root.displayedNode
|
||||
ToolTip.text: root.useExternal ? "Close external file" : "Clear node"
|
||||
enabled: root.displayedNode || root.useExternal
|
||||
visible: root.displayedNode || root.useExternal
|
||||
onClicked: {
|
||||
root.displayedNode = null
|
||||
if (root.displayedNode) root.displayedNode = null
|
||||
if (root.useExternal) root.useExternal = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue