mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
FIX: turn off staffpick by switch
Change-Id: I7ab5c2aa14273a7e7bb2badccdddac22b784f342 (cherry picked from commit b2aa5e32ce61677838621aaedb9ddbe3699bddf7)
This commit is contained in:
parent
84eb6159aa
commit
4fd8a2b957
2 changed files with 4 additions and 2 deletions
|
@ -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_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 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 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) {
|
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;
|
long max = 0;
|
||||||
|
@ -1013,7 +1012,6 @@ wxWindow* PreferencesDialog::create_general_page()
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
sizer_page->Add(title_modelmall, 0, wxTOP | wxEXPAND, FromDIP(20));
|
sizer_page->Add(title_modelmall, 0, wxTOP | wxEXPAND, FromDIP(20));
|
||||||
sizer_page->Add(item_modelmall, 0, wxTOP, FromDIP(3));
|
sizer_page->Add(item_modelmall, 0, wxTOP, FromDIP(3));
|
||||||
|
|
||||||
sizer_page->Add(title_project, 0, wxTOP| wxEXPAND, FromDIP(20));
|
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_max_recent_count, 0, wxTOP, FromDIP(3));
|
||||||
sizer_page->Add(item_save_choise, 0, wxTOP, FromDIP(3));
|
sizer_page->Add(item_save_choise, 0, wxTOP, FromDIP(3));
|
||||||
|
|
|
@ -441,6 +441,10 @@ void WebViewPanel::SendDesignStaffpick(NetworkAgent *agent)
|
||||||
RunScript(wxString::Format("window.postMessage(%s)", body2));
|
RunScript(wxString::Format("window.postMessage(%s)", body2));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
std::string body2 = "{\"total\":0, \"hits\":[]}";
|
||||||
|
body2.insert(1, "\"command\": \"modelmall_model_advise_get\", ");
|
||||||
|
RunScript(wxString::Format("window.postMessage(%s)", body2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue