mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Add menu items for online docs to GUI tools (#5689)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <ntcore_cpp.h>
|
||||
#include <wpi/StringExtras.h>
|
||||
#include <wpigui.h>
|
||||
#include <wpigui_openurl.h>
|
||||
|
||||
#include "glass/Context.h"
|
||||
#include "glass/MainMenuBar.h"
|
||||
@@ -282,6 +283,15 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Docs")) {
|
||||
if (ImGui::MenuItem("Online documentation")) {
|
||||
wpi::gui::OpenURL(
|
||||
"https://docs.wpilib.org/en/stable/docs/software/dashboards/"
|
||||
"glass/");
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
});
|
||||
|
||||
gui::AddLateExecute([] {
|
||||
|
||||
Reference in New Issue
Block a user