Update PropertiesDialog.qml

This commit is contained in:
Flex Zhong 2021-07-12 19:02:29 +08:00 committed by GitHub
parent 7f86732e82
commit fe36b143d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,21 +80,13 @@ Window {
source: "image://icontheme/" + main.iconName source: "image://icontheme/" + main.iconName
} }
FishUI.ActionTextField { TextField {
id: _textField id: _textField
text: main.fileName text: main.fileName
focus: true focus: true
Layout.fillWidth: true Layout.fillWidth: true
Keys.onEscapePressed: control.close() Keys.onEscapePressed: control.close()
enabled: !main.multiple && main.isWritable enabled: !main.multiple && main.isWritable
rightActions: [
Action {
icon.source: "image://icontheme/edit-clear"
onTriggered: {
_textField.text = ""
}
}
]
} }
} }