PRUSA 2.7.0

This commit is contained in:
sunsets
2023-12-27 18:02:35 +08:00
parent b33112327f
commit 0a3c63dcb1
488 changed files with 92371 additions and 29443 deletions

View File

@@ -315,6 +315,12 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates, bool force_
flex->Add(update_comment);
}
if (! update.new_printers.empty()) {
flex->Add(new wxStaticText(this, wxID_ANY, _L_PLURAL("New printer", "New printers", update.new_printers.find(',') == std::string::npos ? 1 : 2) + ":"), 0, wxALIGN_RIGHT);
auto* update_printer = new wxStaticText(this, wxID_ANY, from_u8(update.new_printers));
update_printer->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
flex->Add(update_printer);
}
versions->Add(flex);
if (! update.changelog_url.empty() && update.version.prerelease() == nullptr) {
@@ -375,6 +381,12 @@ MsgUpdateForced::MsgUpdateForced(const std::vector<Update>& updates) :
versions->Add(update_comment);
}
if (!update.new_printers.empty()) {
versions->Add(new wxStaticText(this, wxID_ANY, _L_PLURAL("New printer", "New printers", update.new_printers.find(',') == std::string::npos ? 1 : 2)+":")/*, 0, wxALIGN_RIGHT*/);
auto* update_printer = new wxStaticText(this, wxID_ANY, from_u8(update.new_printers));
update_printer->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
versions->Add(update_printer);
}
if (!update.changelog_url.empty() && update.version.prerelease() == nullptr) {
auto* line = new wxBoxSizer(wxHORIZONTAL);
auto changelog_url = (boost::format(update.changelog_url) % lang_code).str();