Kaynağa Gözat

Misc: tweak conflicting id error tooltip to use a link.

Now that nested tooltips are not hiding each others.
ocornut 3 ay önce
ebeveyn
işleme
68a44776bd
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      imgui.cpp

+ 1 - 2
imgui.cpp

@@ -11033,8 +11033,7 @@ void ImGui::ErrorCheckEndFrameFinalizeErrorTooltip()
             Text("(Hold CTRL to ");
         }
         SameLine(0.0f, 0.0f);
-        if (SmallButton("Open FAQ->About ID Stack System") && g.PlatformIO.Platform_OpenInShellFn != NULL)
-            g.PlatformIO.Platform_OpenInShellFn(&g, "https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#qa-usage");
+        TextLinkOpenURL("Read FAQ \"About ID Stack System\"", "https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#qa-usage");
         SameLine(0.0f, 0.0f);
         Text(")");
         EndErrorTooltip();