This commit is contained in:
supermerill 2019-09-30 19:35:31 +02:00
parent 8d04e48ff0
commit 01e61068da
2 changed files with 6 additions and 6 deletions

View File

@ -87,9 +87,9 @@ int main(int argc, char const *argv[])
};
std::ifstream file(filename, std::ios::binary | std::ios::ate);
const auto size = file.tellg();
const std::streampos size = file.tellg();
if (size == 0) {
if (size == std::streampos{ 0 }) {
return 0;
}

View File

@ -668,12 +668,12 @@ void MainFrame::init_menubar()
//# wxTheApp->check_version(1);
//# });
//# $versioncheck->Enable(wxTheApp->have_version_check);
append_menu_item(helpMenu, wxID_ANY, wxString::Format(_(L("%s &Website")), SLIC3R_APP_NAME),
wxString::Format(_(L("Open the %s website in your browser")), SLIC3R_APP_NAME),
[this](wxCommandEvent&) { wxGetApp().open_web_page_localized("https://www.prusa3d.com/slicerweb"); });
append_menu_item(helpMenu, wxID_ANY, wxString::Format(_(L("Slic3r Website"))),
wxString::Format(_(L("Open the Slic3r website in your browser"))),
// [this](wxCommandEvent&) { wxGetApp().open_web_page_localized("https://www.prusa3d.com/slicerweb"); });
// append_menu_item(helpMenu, wxID_ANY, wxString::Format(_(L("%s &Manual")), SLIC3R_APP_NAME),
// wxString::Format(_(L("Open the %s manual in your browser")), SLIC3R_APP_NAME),
// [this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://manual.slic3r.org/"); });
[this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://manual.slic3r.org/"); });
helpMenu->AppendSeparator();
append_menu_item(helpMenu, wxID_ANY, _(L("System &Info")), _(L("Show system information")),
[this](wxCommandEvent&) { wxGetApp().system_info(); });