remove context from DesktopSidePanel

we can just get this from the egui::Ui when rendering

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-05-18 10:57:28 -07:00
parent fd943e5f9f
commit 66ce42a302
2 changed files with 13 additions and 14 deletions

View File

@@ -120,7 +120,7 @@ mod preview {
impl View for GlobalPopupPreview {
fn ui(&mut self, ui: &mut egui::Ui) {
let mut panel = DesktopSidePanel::new(ui.ctx());
let mut panel = DesktopSidePanel::new();
DesktopSidePanel::panel().show(ui.ctx(), |ui| panel.ui(ui));
DesktopGlobalPopup::new(&mut self.app).ui(ui);
}