add wiki url

#10
This commit is contained in:
Ammerhai 2025-11-19 15:57:32 +01:00
parent b1de78bfe0
commit 910b238763

View File

@ -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();