mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Clear file selection and disabled Open button when change directory
This commit is contained in:
parent
262e0262fc
commit
358355cfbf
1 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,10 @@ ModalWindow {
|
||||||
openButton.text = root.selectDirectory && row === -1 ? "Choose" : "Open"
|
openButton.text = root.selectDirectory && row === -1 ? "Choose" : "Open"
|
||||||
|
|
||||||
if (row === -1) {
|
if (row === -1) {
|
||||||
|
if (!root.selectDirectory) {
|
||||||
|
currentSelection.text = "";
|
||||||
|
currentSelectionIsFolder = false;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue