mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user