1
0
mirror of synced 2024-12-01 02:37:18 +01:00

fix: Opening multiple files by dragging them onto the window

This commit is contained in:
WerWolv 2022-11-10 11:17:21 +01:00
parent b29d184488
commit 7f0bdea212

View File

@ -636,9 +636,6 @@ namespace hex {
}); });
glfwSetDropCallback(this->m_window, [](GLFWwindow *, int count, const char **paths) { glfwSetDropCallback(this->m_window, [](GLFWwindow *, int count, const char **paths) {
if (count != 1)
return;
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
auto path = std::fs::path(reinterpret_cast<const char8_t *>(paths[i])); auto path = std::fs::path(reinterpret_cast<const char8_t *>(paths[i]));