Remove documentation website link.

This commit is contained in:
byuu 2020-03-23 01:28:48 +09:00
parent 3df6623fbf
commit da335007e7
3 changed files with 3 additions and 13 deletions

View File

@ -178,9 +178,6 @@ auto Presentation::create() -> void {
manifestViewer.setIcon(Icon::Emblem::Text).setText("Manifest Viewer ...").onActivate([&] { toolsWindow.show(3); });
helpMenu.setText(tr("Help"));
documentation.setIcon(Icon::Application::Browser).setText({tr("Documentation"), " ..."}).onActivate([&] {
invoke("https://byuu.org/doc/bsnes");
});
aboutSameBoy.setIcon(Icon::Prompt::Question).setText({tr("About SameBoy"), " ..."}).onActivate([&] {
AboutDialog()
.setName("SameBoy")
@ -193,7 +190,7 @@ auto Presentation::create() -> void {
.setAlignment(*this)
.show();
});
about.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] {
aboutBsnes.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] {
AboutDialog()
.setName(Emulator::Name)
.setLogo(Resource::Logo)

View File

@ -118,10 +118,8 @@ struct Presentation : Window {
MenuItem stateManager{&toolsMenu};
MenuItem manifestViewer{&toolsMenu};
Menu helpMenu{&menuBar};
MenuItem documentation{&helpMenu};
MenuSeparator helpSeparator{&helpMenu};
MenuItem aboutSameBoy{&helpMenu};
MenuItem about{&helpMenu};
MenuItem aboutBsnes{&helpMenu};
VerticalLayout layout{this};
HorizontalLayout viewportLayout{&layout, Size{~0, ~0}, 0};

View File

@ -88,12 +88,7 @@ auto Program::open(uint id, string name, vfs::file::mode mode, bool required) ->
}
if(!result && required) {
if(MessageDialog({
"Error: missing required data: ", name, "\n\n",
"Would you like to view the online documentation for more information?"
}).setAlignment(*presentation).error({"Yes", "No"}) == "Yes") {
presentation.documentation.doActivate();
}
MessageDialog({"Error: missing required data: ", name}).setAlignment(*presentation).error();
}
return result;