From d44525d916ca3472b81a4d2f7f62ad7413087353 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Sun, 5 Dec 2021 08:43:06 +0100 Subject: [PATCH] Fix of Upload and simulate wrong label (Issue #7424) --- src/slic3r/GUI/PrintHostDialogs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/PrintHostDialogs.cpp b/src/slic3r/GUI/PrintHostDialogs.cpp index 2cea580be..09ba48b58 100644 --- a/src/slic3r/GUI/PrintHostDialogs.cpp +++ b/src/slic3r/GUI/PrintHostDialogs.cpp @@ -98,8 +98,9 @@ PrintHostSendDialog::PrintHostSendDialog(const fs::path &path, PrintHostPostUplo } if (post_actions.has(PrintHostPostUploadAction::StartSimulation)) { - auto* btn_print = add_button(wxID_YES, false, _L("Upload and Simulate")); - btn_print->Bind(wxEVT_BUTTON, [this, validate_path](wxCommandEvent&) { + // Using wxID_MORE as a button identifier to be different from the other buttons, wxID_MORE has no other meaning here. + auto* btn_simulate = add_button(wxID_MORE, false, _L("Upload and Simulate")); + btn_simulate->Bind(wxEVT_BUTTON, [this, validate_path](wxCommandEvent&) { if (validate_path(txt_filename->GetValue())) { post_upload_action = PrintHostPostUploadAction::StartSimulation; EndDialog(wxID_OK);