diff --git a/src/work-calendar.cpp b/src/work-calendar.cpp index f088182..ba90196 100644 --- a/src/work-calendar.cpp +++ b/src/work-calendar.cpp @@ -55,6 +55,7 @@ void init(){ } static char* savefile_path = "./calendar"; +static char* wiki_url = "https://gitea.ammerhai.com/Ammerhai/work-calendar/wiki"; static const char* month_names[] = {"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"}; @@ -193,7 +194,9 @@ void per_frame(){ if (ImGui::BeginMenu("Hilfe")) { ImGui::MenuItem("Demo", NULL, &show_demo_window); - ImGui::MenuItem("Wiki", NULL); + if (ImGui::MenuItem("Wiki", NULL)) { + ImGui::GetPlatformIO().Platform_OpenInShellFn(ImGui::GetCurrentContext(), wiki_url); + } ImGui::Separator(); ImGui::MenuItem("Über", NULL); ImGui::EndMenu();