OrcaPrinterAgent Storage Tab

This commit is contained in:
Lam Wei Lun
2026-10-05 18:22:29 +08:00
parent 0110572a77
commit 3942ba7005
21 changed files with 2213 additions and 104 deletions
+7 -1
View File
@@ -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";
}