mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX:fixed appconfig is not saved when switching dark mode
Change-Id: I77fc3808309a23497000c34b6047a359d12c4622
This commit is contained in:
parent
4a5c473058
commit
eca5897a25
22 changed files with 84 additions and 26 deletions
|
@ -437,6 +437,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
|||
m_sizer_main->Fit(this);
|
||||
|
||||
CenterOnParent();
|
||||
wxGetApp().UpdateFrameDarkUI(this);
|
||||
}
|
||||
|
||||
void SecondaryCheckDialog::update_text(wxString text)
|
||||
|
@ -470,6 +471,7 @@ void SecondaryCheckDialog::update_text(wxString text)
|
|||
|
||||
void SecondaryCheckDialog::on_show()
|
||||
{
|
||||
wxGetApp().UpdateFrameDarkUI(this);
|
||||
// recover button color
|
||||
wxMouseEvent evt_ok(wxEVT_LEFT_UP);
|
||||
m_button_ok->GetEventHandler()->ProcessEvent(evt_ok);
|
||||
|
@ -477,7 +479,7 @@ void SecondaryCheckDialog::on_show()
|
|||
m_button_cancel->GetEventHandler()->ProcessEvent(evt_cancel);
|
||||
|
||||
this->Show();
|
||||
this->SetFocus();
|
||||
this->SetFocus();
|
||||
}
|
||||
|
||||
void SecondaryCheckDialog::on_hide()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue