mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
bugfix: dialogs.ChooseFilesToOpen
This commit is contained in:
@@ -129,6 +129,10 @@ proc ChooseFilesToOpen*(window: PWindow, root: string = ""): seq[string] =
|
||||
inc(i)
|
||||
if buf[i] == '\0': break
|
||||
for i in 0..result.len-1: result[i] = os.joinPath(path, result[i])
|
||||
else:
|
||||
# only one file selected --> gosh, what an ungly thing
|
||||
# the windows API is
|
||||
add(result, path)
|
||||
else:
|
||||
var chooser = file_chooser_dialog_new("Open Files", window,
|
||||
FILE_CHOOSER_ACTION_OPEN,
|
||||
|
||||
@@ -11,6 +11,8 @@ Bugfixes
|
||||
- Bugfix: ``httpclient`` correct passes the path starting with ``/``.
|
||||
- Bugfixes for the ``htmlparser`` module.
|
||||
- Bugfix: ``pegs.find`` did not respect ``start`` parameter.
|
||||
- Bugfix: ``dialogs.ChooseFilesToOpen`` did not work if only one file is
|
||||
selected.
|
||||
|
||||
|
||||
Additions
|
||||
|
||||
Reference in New Issue
Block a user