Renoise 3.1.1 x64 W10 x64:
I think there is a small problem with the following case of aplication:
– Opens a modal dialog to query an existing directory from the user.
-> [valid path or empty string]
There is no way to return nil or a boolean, or string “Cancel” to identify if the user presses the “Cancel” button.
The specific problem is that, apparently the return of an empty string (""), returns the path C:/, a valid path. The issue is that some form of being able to continue with the function without resorting to the empty string is necessary. What happens is that if you use the empty string to continue with the function, the “Accept” button will do nothing, if you use the empty string as a condition to continue with the function (if path == “” then …)
The expected thing would be, to return
- non-empty string or empty string (both)
- nil …or “cancel” string.
That is, it is not possible to use the empty string for the Cancel button. If so, the OK button will not be able to take the empty string as a possible route. It forces the user to change the route in the pop-up window, when it should not be like that. C: / is also a valid path to save folders.