This commit is contained in:
Kovid Goyal
2026-05-15 13:31:22 +05:30
parent 320bd90ebb
commit 69800d89c0

View File

@@ -4570,7 +4570,7 @@ _glfwPlatformStartDrag(_GLFWwindow* window, const GLFWimage* thumbnail) {@autore
Block_release(completion_handler);
completion_handler = nil;
}
[file_promise_providers removeObject:self];
if (file_promise_providers) [file_promise_providers removeObject:self];
if (drag_finish_window_id) {
if (!file_promise_providers || [file_promise_providers count] == 0) {
fire_drag_finished();