mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-08 00:01:09 +00:00
OrcaPrinterAgent Storage Tab
This commit is contained in:
@@ -230,7 +230,13 @@ MediaFilePanel::MediaFilePanel(wxWindow * parent)
|
||||
});
|
||||
};
|
||||
Bind(wxEVT_SHOW, onShowHide);
|
||||
parent->GetParent()->Bind(wxEVT_SHOW, onShowHide);
|
||||
// Watch the page host's show/hide. Walk up past any wrapper containers (e.g. a
|
||||
// StoragePanel) so the target stays the same regardless of nesting depth.
|
||||
wxWindow* host = parent;
|
||||
while (host && !host->IsTopLevel() && host->GetParent() && !host->GetParent()->IsTopLevel())
|
||||
host = host->GetParent();
|
||||
if (host && host != this)
|
||||
host->Bind(wxEVT_SHOW, onShowHide);
|
||||
|
||||
m_lan_user = "bblp";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user