16 lines
1.0 KiB
Diff
16 lines
1.0 KiB
Diff
Index: PrusaSlicer-2.4.2/src/slic3r/GUI/PrintHostDialogs.cpp
|
|
===================================================================
|
|
--- PrusaSlicer-2.4.2.orig/src/slic3r/GUI/PrintHostDialogs.cpp
|
|
+++ PrusaSlicer-2.4.2/src/slic3r/GUI/PrintHostDialogs.cpp
|
|
@@ -79,8 +79,8 @@ PrintHostSendDialog::PrintHostSendDialog
|
|
if (size_t extension_start = recent_path.find_last_of('.'); extension_start != std::string::npos)
|
|
m_valid_suffix = recent_path.substr(extension_start);
|
|
// .gcode suffix control
|
|
- auto validate_path = [this](const wxString &path) -> bool {
|
|
- if (! path.Lower().EndsWith(m_valid_suffix.Lower())) {
|
|
+ auto validate_path = [this](const wxString &apath) -> bool {
|
|
+ if (! apath.Lower().EndsWith(m_valid_suffix.Lower())) {
|
|
MessageDialog msg_wingow(this, wxString::Format(_L("Upload filename doesn't end with \"%s\". Do you wish to continue?"), m_valid_suffix), wxString(SLIC3R_APP_NAME), wxYES | wxNO);
|
|
if (msg_wingow.ShowModal() == wxID_NO)
|
|
return false;
|