Show OK instead of Yes on notice dialogs (#16332)

Several warning and info dialogs passed wxYES as their only button, so
the only choice was "Yes" even though nothing is asked. Use wxOK.

None of the callers act on wxID_YES. They ignore the result, except
Field.cpp, which only checks that it's nonzero, and every button id is.
wxYES_DEFAULT is 0, so dropping it next to wxOK changes nothing.

Also drop the empty `if (ShowModal() == wxID_YES) {}` in
Plater::priv::load_files.
This commit is contained in:
Kris Austin
2026-10-10 15:30:17 +03:00
committed by GitHub
parent b14ed3e0c1
commit cf5f7b778d
5 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -10279,8 +10279,8 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
"Enable \"CAD feature (experimental)\" in Preferences and restart to see and edit it; "
"it is kept when the project is saved.")
: _L("The file does not contain any geometry data.");
MessageDialog msg(wxGetApp().mainframe, text, _L("Warning"), wxYES | wxICON_WARNING);
if (msg.ShowModal() == wxID_YES) {}
MessageDialog msg(wxGetApp().mainframe, text, _L("Warning"), wxOK | wxICON_WARNING);
msg.ShowModal();
}
}
q->schedule_background_process(true);