From 194f52fb88de25fafd8c3aa2e2ca2d42dab5093b Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Thu, 20 Feb 2025 14:07:25 +0800 Subject: [PATCH] FIX:Add Button to restore the pop-up window which is not show again jira: STUDIO-9734 Change-Id: I33280f747b095dbd1de1643c04c900365c36e922 (cherry picked from commit 9304073ecb6b16997bc89a19aa0fd2008922210f) --- src/slic3r/GUI/Preferences.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index 0f0578b7ea..18e3861928 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -1230,6 +1230,9 @@ wxWindow* PreferencesDialog::create_general_page() auto item_step_mesh_setting = create_item_checkbox(_L("Show the step mesh parameter setting dialog."), page, _L("If enabled,a parameter settings dialog will appear during STEP file import."), 50, "enable_step_mesh_setting"); auto item_multi_machine = create_item_checkbox(_L("Multi-device Management (Take effect after restarting Orca Slicer)."), page, _L("With this option enabled, you can send a task to multiple devices at the same time and manage multiple devices."), 50, "enable_multi_machine"); auto item_mix_print_high_low_temperature = create_item_checkbox(_L("Remove the restriction on mixed printing of high and low temperature filaments."), page, _L("With this option enabled, you can print materials with a large temperature difference together."), 50, "enable_high_low_temp_mixed_printing"); + auto item_restore_hide_pop_ups = create_item_button(_L("Clear my choice for synchronizing printer preset after loading the file."), _L("Clear"), page, L"", _L("Clear my choice for synchronizing printer preset after loading the file."), []() { + wxGetApp().app_config->erase("app", "sync_after_load_file_show_flag"); + }); auto item_auto_arrange = create_item_checkbox(_L("Auto arrange plate after cloning"), page, _L("Auto arrange plate after object cloning"), 50, "auto_arrange"); auto title_presets = create_item_title(_L("Presets"), page, _L("Presets")); auto title_network = create_item_title(_L("Network"), page, _L("Network")); @@ -1320,6 +1323,7 @@ wxWindow* PreferencesDialog::create_general_page() sizer_page->Add(item_step_mesh_setting, 0, wxTOP, FromDIP(3)); sizer_page->Add(item_auto_arrange, 0, wxTOP, FromDIP(3)); sizer_page->Add(item_mix_print_high_low_temperature, 0, wxTOP, FromDIP(3)); + sizer_page->Add(item_restore_hide_pop_ups, 0, wxTOP, FromDIP(3)); sizer_page->Add(title_presets, 0, wxTOP | wxEXPAND, FromDIP(20)); sizer_page->Add(item_user_sync, 0, wxTOP, FromDIP(3)); sizer_page->Add(item_system_sync, 0, wxTOP, FromDIP(3));