ENH: remove placeholder '0' in version display

Change-Id: I6c0ffdd229a630a48a676c12a8f124f7a6e39f09
This commit is contained in:
tao.jin 2022-10-25 16:27:02 +08:00 committed by Lane.Wei
parent 99eee4a2d6
commit e22115bf9c
3 changed files with 29 additions and 6 deletions

View file

@ -244,10 +244,11 @@ AboutDialog::AboutDialog()
// version
{
vesizer->Add(0, FromDIP(165), 1, wxEXPAND, FromDIP(5));
auto version_text = GUI_App::format_display_version();
#if BBL_INTERNAL_TESTING
auto version_string = _L("Internal Version") + " " + std::string(SLIC3R_VERSION);
auto version_string = _L("Internal Version") + " " + std::string(version_text);
#else
auto version_string = _L("Version") + " " + std::string(SLIC3R_VERSION);
auto version_string = _L("Version") + " " + std::string(version_text);
#endif
wxStaticText* version = new wxStaticText(this, wxID_ANY, version_string.c_str(), wxDefaultPosition, wxDefaultSize);
wxFont version_font = GetFont();
@ -416,7 +417,7 @@ void AboutDialog::onCopyrightBtn(wxEvent &)
void AboutDialog::onCopyToClipboard(wxEvent&)
{
wxTheClipboard->Open();
wxTheClipboard->SetData(new wxTextDataObject(_L("Version") + " " + std::string(SLIC3R_VERSION)));
wxTheClipboard->SetData(new wxTextDataObject(_L("Version") + " " + GUI_App::format_display_version()));
wxTheClipboard->Close();
}