mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 11:24:12 +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 {
|
Column {
|
||||||
width: pane.contentWidth
|
width: pane.contentWidth
|
||||||
|
|
||||||
|
@ -317,6 +321,7 @@ Window {
|
||||||
width: 80
|
width: 80
|
||||||
|
|
||||||
onClicked: root.renameFile()
|
onClicked: root.renameFile()
|
||||||
|
enabled: treeView.selection.hasSelection
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
|
@ -329,6 +334,7 @@ Window {
|
||||||
width: 80
|
width: 80
|
||||||
|
|
||||||
onClicked: root.deleteFile()
|
onClicked: root.deleteFile()
|
||||||
|
enabled: treeView.selection.hasSelection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue