mirror of https://github.com/bsnes-emu/bsnes.git
Remove documentation website link.
This commit is contained in:
parent
3df6623fbf
commit
da335007e7
|
@ -178,9 +178,6 @@ auto Presentation::create() -> void {
|
||||||
manifestViewer.setIcon(Icon::Emblem::Text).setText("Manifest Viewer ...").onActivate([&] { toolsWindow.show(3); });
|
manifestViewer.setIcon(Icon::Emblem::Text).setText("Manifest Viewer ...").onActivate([&] { toolsWindow.show(3); });
|
||||||
|
|
||||||
helpMenu.setText(tr("Help"));
|
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([&] {
|
aboutSameBoy.setIcon(Icon::Prompt::Question).setText({tr("About SameBoy"), " ..."}).onActivate([&] {
|
||||||
AboutDialog()
|
AboutDialog()
|
||||||
.setName("SameBoy")
|
.setName("SameBoy")
|
||||||
|
@ -193,7 +190,7 @@ auto Presentation::create() -> void {
|
||||||
.setAlignment(*this)
|
.setAlignment(*this)
|
||||||
.show();
|
.show();
|
||||||
});
|
});
|
||||||
about.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] {
|
aboutBsnes.setIcon(Icon::Prompt::Question).setText({tr("About bsnes"), " ..."}).onActivate([&] {
|
||||||
AboutDialog()
|
AboutDialog()
|
||||||
.setName(Emulator::Name)
|
.setName(Emulator::Name)
|
||||||
.setLogo(Resource::Logo)
|
.setLogo(Resource::Logo)
|
||||||
|
|
|
@ -118,10 +118,8 @@ struct Presentation : Window {
|
||||||
MenuItem stateManager{&toolsMenu};
|
MenuItem stateManager{&toolsMenu};
|
||||||
MenuItem manifestViewer{&toolsMenu};
|
MenuItem manifestViewer{&toolsMenu};
|
||||||
Menu helpMenu{&menuBar};
|
Menu helpMenu{&menuBar};
|
||||||
MenuItem documentation{&helpMenu};
|
|
||||||
MenuSeparator helpSeparator{&helpMenu};
|
|
||||||
MenuItem aboutSameBoy{&helpMenu};
|
MenuItem aboutSameBoy{&helpMenu};
|
||||||
MenuItem about{&helpMenu};
|
MenuItem aboutBsnes{&helpMenu};
|
||||||
|
|
||||||
VerticalLayout layout{this};
|
VerticalLayout layout{this};
|
||||||
HorizontalLayout viewportLayout{&layout, Size{~0, ~0}, 0};
|
HorizontalLayout viewportLayout{&layout, Size{~0, ~0}, 0};
|
||||||
|
|
|
@ -88,12 +88,7 @@ auto Program::open(uint id, string name, vfs::file::mode mode, bool required) ->
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!result && required) {
|
if(!result && required) {
|
||||||
if(MessageDialog({
|
MessageDialog({"Error: missing required data: ", name}).setAlignment(*presentation).error();
|
||||||
"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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue