FIX: turn off staffpick by switch

Change-Id: I7ab5c2aa14273a7e7bb2badccdddac22b784f342
(cherry picked from commit b2aa5e32ce61677838621aaedb9ddbe3699bddf7)
This commit is contained in:
chunmao.guo 2023-04-10 14:14:53 +08:00 committed by Lane.Wei
parent 84eb6159aa
commit 4fd8a2b957
2 changed files with 4 additions and 2 deletions

View file

@ -967,7 +967,6 @@ wxWindow* PreferencesDialog::create_general_page()
// auto item_backup = create_item_switch(_L("Backup switch"), page, _L("Backup switch"), "units");
auto item_modelmall = create_item_checkbox(_L("Show online staff-picked models on the home page"), page, _L("Show online staff-picked models on the home page"), 50, "staff_pick_switch");
auto title_project = create_item_title(_L("Project"), page, "");
auto item_max_recent_count = create_item_input(_L("Maximum recent projects"), "", page, _L("Maximum count of recent projects"), "max_recent_count", [](wxString value) {
long max = 0;
@ -1013,7 +1012,6 @@ wxWindow* PreferencesDialog::create_general_page()
#endif // _WIN32
sizer_page->Add(title_modelmall, 0, wxTOP | wxEXPAND, FromDIP(20));
sizer_page->Add(item_modelmall, 0, wxTOP, FromDIP(3));
sizer_page->Add(title_project, 0, wxTOP| wxEXPAND, FromDIP(20));
sizer_page->Add(item_max_recent_count, 0, wxTOP, FromDIP(3));
sizer_page->Add(item_save_choise, 0, wxTOP, FromDIP(3));