mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:open search function to Windows platform
jira:[STUDIO-11620] Change-Id: Icc53f6d700049b9db35d645b0568e6a16d38fd1f (cherry picked from commit 480b1d71b497e5fa0a9fa4fceef112982d6802e2)
This commit is contained in:
@@ -329,7 +329,7 @@ SelectMachinePopup::SelectMachinePopup(wxWindow *parent)
|
||||
m_scrolledWindow->Layout();
|
||||
m_sizxer_scrolledWindow->Fit(m_scrolledWindow);
|
||||
|
||||
#if !BBL_RELEASE_TO_PUBLIC && defined(__WINDOWS__)
|
||||
#if defined(__WINDOWS__)
|
||||
m_sizer_search_bar = new wxBoxSizer(wxVERTICAL);
|
||||
m_search_bar = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_search_bar->SetDescriptiveText(_L("Search"));
|
||||
@@ -520,7 +520,7 @@ void SelectMachinePopup::update_other_devices()
|
||||
m_other_list_machine_panel.push_back(mpanel);
|
||||
m_sizer_other_devices->Add(op, 0, wxEXPAND, 0);
|
||||
}
|
||||
#if !BBL_RELEASE_TO_PUBLIC && defined(__WINDOWS__)
|
||||
#if defined(__WINDOWS__)
|
||||
if (!search_for_printer(mobj)) {
|
||||
op->Hide();
|
||||
}
|
||||
@@ -647,7 +647,7 @@ void SelectMachinePopup::update_user_devices()
|
||||
MachineObjectPanel* op = nullptr;
|
||||
if (i < m_user_list_machine_panel.size()) {
|
||||
op = m_user_list_machine_panel[i]->mPanel;
|
||||
#if !BBL_RELEASE_TO_PUBLIC && defined(__WINDOWS__)
|
||||
#if defined(__WINDOWS__)
|
||||
if (!search_for_printer(mobj)) {
|
||||
op->Hide();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user