Load files dropped on the window asynchronously

This commit is contained in:
Thomas Goyne 2014-06-26 17:18:27 -07:00
parent 6a3a401f57
commit e48e8cef84

View file

@ -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;
}
};