Fix for opening files with program association; shouldn't open popup anymore

This commit is contained in:
2025-12-06 22:47:01 -05:00
parent 63c0ffe166
commit 10b37e9854
2 changed files with 8 additions and 5 deletions

View File

@@ -231,7 +231,7 @@ namespace anm2ed
{
if (path.empty()) continue;
SDL_Event event{};
event.type = SDL_EVENT_DROP_FILE;
event.type = SDL_EVENT_USER;
event.drop.data = SDL_strdup(path.c_str());
event.drop.windowID = window ? SDL_GetWindowID(window) : 0;
SDL_PushEvent(&event);