disable the rename and delete buttons if nothing selected

This commit is contained in:
Stephen Birarda 2016-03-11 13:32:50 -08:00
parent 6d6a53a69a
commit 31f0e4a919

View file

@ -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
}
}