mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: use dialog instead of popup window
jira: [STUDIO-10692] Change-Id: I85e8da120946fc6ff845c9b88d4f1594e313652b (cherry picked from commit 7115c1ca177e98c2931517d748ce4d63d3a067da)
This commit is contained in:
@@ -588,7 +588,7 @@ Description:FanControlPopupNew
|
||||
**************************************************/
|
||||
static void nop_deleter_fan_control_popup(FanControlPopupNew *) {}
|
||||
FanControlPopupNew::FanControlPopupNew(wxWindow* parent, MachineObject* obj, const AirDuctData& data)
|
||||
: PopupWindow(parent, wxBORDER_NONE)
|
||||
: wxDialog(parent, wxID_ANY, wxEmptyString)
|
||||
{
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
init_names();
|
||||
@@ -848,10 +848,6 @@ void FanControlPopupNew::on_left_down(wxMouseEvent& evt)
|
||||
evt.Skip();
|
||||
}
|
||||
|
||||
void FanControlPopupNew::OnDismiss()
|
||||
{
|
||||
}
|
||||
|
||||
void FanControlPopupNew::post_event(int fan_type, wxString speed)
|
||||
{
|
||||
// id, speed
|
||||
@@ -863,11 +859,6 @@ void FanControlPopupNew::post_event(int fan_type, wxString speed)
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
bool FanControlPopupNew::ProcessLeftDown(wxMouseEvent& event)
|
||||
{
|
||||
return PopupWindow::ProcessLeftDown(event);
|
||||
}
|
||||
|
||||
void FanControlPopupNew::on_show(wxShowEvent& evt)
|
||||
{
|
||||
wxGetApp().UpdateDarkUIWin(this);
|
||||
|
||||
Reference in New Issue
Block a user