use relative format, add links to about-boe

This commit is contained in:
2024-11-16 17:13:25 -06:00
parent 34103067b3
commit 0c0e609a22
3 changed files with 40 additions and 19 deletions

View File

@@ -245,7 +245,18 @@ void show_dialog_action(std::string xml_file) {
if(recording){
record_action("show_dialog_action", xml_file);
}
cChoiceDlog(xml_file).show();
cChoiceDlog dlog(xml_file);
// Dialogs with hyperlinks need special handling:
if(xml_file == "about-boe"){
dlog->attachClickHandlers([](cDialog& self, std::string clicked, eKeyMod) {
launchURL(self[clicked].getText());
return false;
}, {"src", "issues"});
}
dlog.show();
}
bool prime_time() {