mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
disable the rename and delete buttons if nothing selected
This commit is contained in:
parent
6d6a53a69a
commit
31f0e4a919
1 changed files with 6 additions and 0 deletions
|
@ -272,6 +272,10 @@ Window {
|
|||
});
|
||||
}
|
||||
|
||||
function itemSelected() {
|
||||
return treeView.selection.hasSelection()
|
||||
}
|
||||
|
||||
Column {
|
||||
width: pane.contentWidth
|
||||
|
||||
|
@ -317,6 +321,7 @@ Window {
|
|||
width: 80
|
||||
|
||||
onClicked: root.renameFile()
|
||||
enabled: treeView.selection.hasSelection
|
||||
}
|
||||
|
||||
HifiControls.Button {
|
||||
|
@ -329,6 +334,7 @@ Window {
|
|||
width: 80
|
||||
|
||||
onClicked: root.deleteFile()
|
||||
enabled: treeView.selection.hasSelection
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue