Load files dropped on the window asynchronously
This commit is contained in:
parent
6a3a401f57
commit
e48e8cef84
1 changed files with 2 additions and 1 deletions
|
@ -59,6 +59,7 @@
|
|||
#include "video_controller.h"
|
||||
#include "video_display.h"
|
||||
|
||||
#include <libaegisub/dispatch.h>
|
||||
#include <libaegisub/log.h>
|
||||
#include <libaegisub/make_unique.h>
|
||||
|
||||
|
@ -87,7 +88,7 @@ public:
|
|||
std::vector<agi::fs::path> files;
|
||||
for (wxString const& fn : filenames)
|
||||
files.push_back(from_wx(fn));
|
||||
context->project->LoadList(files);
|
||||
agi::dispatch::Main().Async([=] { context->project->LoadList(files); });
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue