pthom / imgui_manual

https://pthom.github.io/imgui_manual_online - an interactive manual for ImGui
MIT License
304 stars 23 forks source link

Acknowledgement github url open multiple times #6

Closed jrynkiew closed 2 years ago

jrynkiew commented 2 years ago

In Acknowledgements you use the strings defined in Sources.cpp, like so:

"imgui_markdown", "imgui_markdown", "https://github.com/juliettef/imgui_markdown"

The first parameter is a LibraryFolderPath and the next two are strings.

Then in LibrariesCodeBrowser.cpp you use this data to display the strings and the markdowns, but on line 55 you use the url as a ImGuiExt::Hyperlink(librarySource.url);

This is causing problems on Firefox 89.02 x64 where clicking the link opens multiple tabs and effectively the whole imgui application needs to be reloaded, as even hovering over the markdown window will keep on opening new tabs :package:

I recommend changing to MarkdownHelper::Markdown(librarySource.url); as it's just a string anyway, and it gives you the additional benefit of having a hover over effect also for this link. [ edit: Of course you will need to edit the acknowledgement URL's and format them in the markdown style of [text] (url) :) ]

pthom commented 2 years ago

Hello,

Nice catch, thanks for the detailed explanation. I just fixed this :-)