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 authored and GitHub committed 2026-10-10 15:30:17 +03:00
1 parent b14ed3e0c1
commit cf5f7b778d
5 files changed
+39 -39

No files matched your search

+1 -1
View File
@@ -4817,7 +4817,7 @@ void StatusPanel::on_ams_refresh_rfid(wxCommandEvent &event)
if (has_filament_at_extruder) {
MessageDialog msg_dlg(nullptr, _L("Cannot read filament info: the filament is loaded to the tool head. Please unload the filament and try again."), wxEmptyString,
wxICON_WARNING | wxYES);
wxICON_WARNING | wxOK);
msg_dlg.ShowModal();
return;
}