mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fixed wrong showing of the frequently changed parameters after printer settings changing
This commit is contained in:
@@ -405,7 +405,7 @@ FreqChangedParams::FreqChangedParams(wxWindow* parent, const int label_width) :
|
|||||||
void FreqChangedParams::Show(const bool show)
|
void FreqChangedParams::Show(const bool show)
|
||||||
{
|
{
|
||||||
bool is_wdb_shown = m_wiping_dialog_button->IsShown();
|
bool is_wdb_shown = m_wiping_dialog_button->IsShown();
|
||||||
m_og->sizer->Show(show);
|
m_og->Show(show);
|
||||||
|
|
||||||
// correct showing of the FreqChangedParams sizer when m_wiping_dialog_button is hidden
|
// correct showing of the FreqChangedParams sizer when m_wiping_dialog_button is hidden
|
||||||
if (show && !is_wdb_shown)
|
if (show && !is_wdb_shown)
|
||||||
@@ -451,18 +451,15 @@ void Sidebar::priv::show_preset_comboboxes()
|
|||||||
|
|
||||||
wxWindowUpdateLocker noUpdates_scrolled(scrolled->GetParent());
|
wxWindowUpdateLocker noUpdates_scrolled(scrolled->GetParent());
|
||||||
|
|
||||||
for (size_t i = 0; i < 4; ++i) {
|
for (size_t i = 0; i < 4; ++i)
|
||||||
if (sizer_presets->IsShown(i) == showSLA)
|
sizer_presets->Show(i, !showSLA);
|
||||||
sizer_presets->Show(i, !showSLA);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (size_t i = 4; i < 6; ++i) {
|
for (size_t i = 4; i < 6; ++i) {
|
||||||
if (sizer_presets->IsShown(i) != showSLA)
|
if (sizer_presets->IsShown(i) != showSLA)
|
||||||
sizer_presets->Show(i, showSLA);
|
sizer_presets->Show(i, showSLA);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frequently_changed_parameters->IsShown() == showSLA)
|
frequently_changed_parameters->Show(!showSLA);
|
||||||
frequently_changed_parameters->Show(!showSLA);
|
|
||||||
|
|
||||||
scrolled->GetParent()->Layout();
|
scrolled->GetParent()->Layout();
|
||||||
scrolled->Refresh();
|
scrolled->Refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user