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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user