mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-26 10:21:00 +00:00
Port color decompose recipe data and interpolation from BambuStudio
This commit is contained in:
@@ -652,7 +652,6 @@ void ColorDecomposeDialog::update_filament_limit_warning()
|
||||
m_limit_warning_panel->Hide();
|
||||
Layout();
|
||||
Fit();
|
||||
CenterOnParent();
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -678,12 +677,11 @@ void ColorDecomposeDialog::update_filament_limit_warning()
|
||||
m_limit_warning_text->Wrap(avail);
|
||||
|
||||
Layout();
|
||||
// Only resize/recenter when the warning panel actually toggled from hidden
|
||||
// to shown. While already visible, switching modes must not re-Fit/recenter
|
||||
// the dialog, which would make it jump on every card switch.
|
||||
// Only resize when the warning panel actually toggled from hidden to shown.
|
||||
// While already visible, switching modes must not re-Fit the dialog, which
|
||||
// would make it jump on every card switch. Fit keeps the user-moved position.
|
||||
if (!was_shown) {
|
||||
Fit();
|
||||
CenterOnParent();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user