We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5b626 commit adf7620Copy full SHA for adf7620
src/common.cpp
@@ -363,8 +363,6 @@ file_dialog(Widget *parent,
363
else if (result != NFD_OKAY)
364
throw std::runtime_error("nanogui::file_dialog(): dialog error: " + std::string(NFD_GetError()));
365
366
- enumerator_set = true;
367
-
368
std::vector<std::string> paths;
369
370
switch (type) {
@@ -378,6 +376,7 @@ file_dialog(Widget *parent,
378
376
case FileDialogType::OpenMultiple:
379
377
if (!NFD_PathSet_GetEnum(out_paths, &enumerator))
380
throw std::runtime_error("nanogui::file_dialog(): could not obtain enumerator: " + std::string(NFD_GetError()));
+ enumerator_set = true;
381
while (NFD_PathSet_EnumNextU8(&enumerator, &out_path) && out_path)
382
paths.emplace_back(out_path);
383
break;
0 commit comments