slic3r: Fix typo in PopupWindow

This commit is contained in:
gw0 2025-01-06 11:30:46 +01:00 committed by Lane.Wei
parent d2d9621c9c
commit b99bc4164d
2 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ bool PopupWindow::Create(wxWindow *parent, int style)
if (!wxPopupTransientWindow::Create(parent, style)) if (!wxPopupTransientWindow::Create(parent, style))
return false; return false;
#ifdef __WXGTK__ #ifdef __WXGTK__
GetTopParent(parent)->Bind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this); GetTopParent(parent)->Bind(wxEVT_ACTIVATE, &PopupWindow::topWindowActivate, this);
#endif #endif
return true; return true;
} }
@ -24,12 +24,12 @@ bool PopupWindow::Create(wxWindow *parent, int style)
PopupWindow::~PopupWindow() PopupWindow::~PopupWindow()
{ {
#ifdef __WXGTK__ #ifdef __WXGTK__
GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActiavate, this); GetTopParent(this)->Unbind(wxEVT_ACTIVATE, &PopupWindow::topWindowActivate, this);
#endif #endif
} }
#ifdef __WXGTK__ #ifdef __WXGTK__
void PopupWindow::topWindowActiavate(wxActivateEvent &event) void PopupWindow::topWindowActivate(wxActivateEvent &event)
{ {
event.Skip(); event.Skip();
if (!event.GetActive() && IsShown()) DismissAndNotify(); if (!event.GetActive() && IsShown()) DismissAndNotify();

View File

@ -17,7 +17,7 @@ public:
private: private:
#ifdef __WXGTK__ #ifdef __WXGTK__
void topWindowActiavate(wxActivateEvent &event); void topWindowActivate(wxActivateEvent &event);
#endif #endif
}; };