IO: amend PlatformOpenInShellFn specs to return a bool. (#7660)

Amend 8f36798
This commit is contained in:
ocornut
2024-07-02 19:03:40 +02:00
parent 380b3559c6
commit 0ebf49b4c1
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -579,7 +579,7 @@ static bool ImGui_ImplGlfw_Init(GLFWwindow* window, bool install_callbacks, Glfw
io.GetClipboardTextFn = ImGui_ImplGlfw_GetClipboardText;
io.ClipboardUserData = bd->Window;
#ifdef __EMSCRIPTEN__
io.PlatformOpenInShellFn = [](ImGuiContext*, const char* url) { ImGui_ImplGlfw_EmscriptenOpenURL(url); };
io.PlatformOpenInShellFn = [](ImGuiContext*, const char* url) { ImGui_ImplGlfw_EmscriptenOpenURL(url); return true; };
#endif
// Create mouse cursors