Update MsgDialog.cpp

This commit is contained in:
sunsets
2024-04-05 15:11:47 +08:00
parent 65a85dae84
commit 8153dcc1b1

View File

@@ -63,9 +63,11 @@ MsgDialog::MsgDialog(wxWindow *parent, const wxString &title, const wxString &he
//B44 //B61 //B44 //B61
logo = new wxStaticBitmap(this, wxID_ANY, bitmap.IsOk() ? bitmap : wxNullBitmap); logo = new wxStaticBitmap(this, wxID_ANY, bitmap.IsOk() ? bitmap : wxNullBitmap);
if (title == "App Update available" or title == _L("Send G-Code to printer host")) { if (title == "App Update available") {
topsizer->Add(rightsizer, 1, wxLEFT | wxTOP | wxRIGHT | wxEXPAND, BORDER); topsizer->Add(rightsizer, 1, wxLEFT | wxTOP | wxRIGHT | wxEXPAND, BORDER);
} else if(title == _L("Send G-Code to printer host")){
topsizer->Add(rightsizer, 1, wxLEFT | wxRIGHT | wxEXPAND, BORDER);
} else { } else {
topsizer->Add(logo, 0, wxALL, BORDER); topsizer->Add(logo, 0, wxALL, BORDER);
topsizer->Add(rightsizer, 1, wxTOP | wxBOTTOM | wxRIGHT | wxEXPAND, BORDER); topsizer->Add(rightsizer, 1, wxTOP | wxBOTTOM | wxRIGHT | wxEXPAND, BORDER);