FIX: the data and UI are out of sync when creating printer

jira: STUDIO-11080
Change-Id: I4cc86174b4ed847b53c87f85f9e590742e6dd9ff
(cherry picked from commit c366876acfb95b16bedb57f9e22e1623fc749f7e)
This commit is contained in:
zhimin.zeng
2025-03-24 19:18:33 +08:00
committed by Noisyfox
parent c2c4fbe3a8
commit 5ce2ec11a8
4 changed files with 116 additions and 53 deletions

View File

@@ -1929,10 +1929,10 @@ void Sidebar::create_printer_preset()
CreatePrinterPresetDialog dlg(wxGetApp().mainframe);
int res = dlg.ShowModal();
if (wxID_OK == res) {
wxGetApp().load_current_presets();
wxGetApp().mainframe->update_side_preset_ui();
update_ui_from_settings();
update_all_preset_comboboxes();
wxGetApp().load_current_presets();
CreatePresetSuccessfulDialog success_dlg(wxGetApp().mainframe, SuccessType::PRINTER);
int res = success_dlg.ShowModal();
if (res == wxID_OK) {