DRY launch doc url

This commit is contained in:
2025-02-06 20:00:19 -06:00
committed by Celtic Minstrel
parent 5804d84012
commit c20dbbf88e
5 changed files with 17 additions and 13 deletions

View File

@@ -427,7 +427,6 @@ void redraw_everything() {
restore_cursor();
}
extern fs::path progDir;
void handle_menu_choice(eMenu item_hit) {
extern cUndoList undo_list;
bool isEdit = false, isHelp = false;
@@ -737,9 +736,7 @@ void handle_menu_choice(eMenu item_hit) {
isHelp = true;
break;
case eMenu::HELP_TOC:
if(fs::is_directory(progDir/"doc"))
launchURL("file://" + (progDir/"doc/editor/Contents.html").string());
else launchURL("http://openboe.com/docs/editor/Contents.html");
launchDocs("editor/Contents.html");
break;
case eMenu::HELP_START:
helpDlog = "help-editing";