bool OnDropFiles(wxCoord, wxCoord, const wxArrayString& filenames) override { std::string subs, audio, video; get_files_to_load(filenames, subs, audio, video); if (subs.empty() && audio.empty() && video.empty()) return false; auto evt = new wxThreadEvent(FILE_LIST_DROPPED); evt->SetPayload(filenames); parent->QueueEvent(evt); return true; }
bool OnDropFiles(wxCoord, wxCoord, const wxArrayString& filenames) { wxString subs, audio, video; get_files_to_load(filenames, subs, audio, video); if (!subs && !audio && !video) return false; wxThreadEvent *evt = new wxThreadEvent(FILE_LIST_DROPPED); evt->SetPayload(filenames); parent->QueueEvent(evt); return true; }