[app] Fixed criteria of a valid folder name
This commit is contained in:
parent
ed218a6f03
commit
a89e489f7a
1 changed files with 1 additions and 2 deletions
|
@ -119,8 +119,7 @@ MouseArea {
|
|||
visible: opacity > 0
|
||||
//% "Enter folder name"
|
||||
placeholderText: qsTrId("shelf-title-placeholder")
|
||||
onTextChanged: console.log(text)
|
||||
EnterKey.enabled: text.length > 0 && text.indexOf("/") < 0
|
||||
EnterKey.enabled: text.length > 0 && text !== "." && text !== ".." && text.indexOf("/") < 0
|
||||
EnterKey.onClicked: {
|
||||
if (_editing) {
|
||||
if (text) {
|
||||
|
|
Loading…
Reference in a new issue