mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Fixed wrong showing of the frequently changed parameters after printer settings changing
This commit is contained in:
parent
c8a13f18f6
commit
70f1cdaf01
1 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue