Update src/slic3r/GUI/Plater.cpp

This commit is contained in:
Ian Bassi 2026-01-26 18:30:46 -03:00 committed by GitHub
parent c7d157514d
commit a5f3656463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1714,7 +1714,7 @@ Sidebar::Sidebar(Plater *parent)
p->editing_filament = -1;
if (p->combo_printer->switch_to_tab())
p->editing_filament = 0;
// ORCA: FIX crash on wxGTK, directly modifying UI (self->Hide() / parent->Layout()) inside a button event can crash because callbacks are not re-entrant, leaving widgets in an inconsistent state
// ORCA: FIX crash on wxGTK, directly modifying UI (self->Hide() / parent->Layout()) inside a button event can crash because callbacks are not re-entrant, leaving widgets in an inconsistent state
wxGetApp().CallAfter([this, panel_color]() {
// ORCA clicking edit button not triggers wxEVT_KILL_FOCUS wxEVT_LEAVE_WINDOW make changes manually to prevent stucked colors when opening printer settings
p->panel_printer_preset->SetBorderColor(panel_color.bd_normal);