Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Dec 2, 2023
1 parent 7fac7bd commit 49bc277
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
13 changes: 4 additions & 9 deletions core/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,7 @@ impl eframe::App for Core {
.show(ctx, |_ui| {});

CentralPanel::default()
.frame(
Frame::default()
.fill(ctx.style().visuals.panel_fill),
)
.frame(Frame::default().fill(ctx.style().visuals.panel_fill))
.show(ctx, |ui| {
ui.set_max_width(device_width);

Expand All @@ -403,10 +400,9 @@ impl eframe::App for Core {
});

if device.is_mobile() {
egui::TopBottomPanel::bottom("mobile_menu_panel")
.show_inside(ui, |ui| {
MobileMenu::new(self).render(ui);
});
egui::TopBottomPanel::bottom("mobile_menu_panel").show_inside(ui, |ui| {
MobileMenu::new(self).render(ui);
});
}

egui::CentralPanel::default()
Expand Down Expand Up @@ -502,7 +498,6 @@ impl Core {
.paint_at(ui, logo_rect);
}


pub fn handle_events(
&mut self,
event: Events,
Expand Down
1 change: 0 additions & 1 deletion core/src/egui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ pub fn popup_above_or_below_widget_local<R>(
.inner
});


let mut close_popup = false;
if close_on_interaction {
if ui.input(|i| i.key_pressed(Key::Escape)) || widget_response.clicked_elsewhere() {
Expand Down
4 changes: 2 additions & 2 deletions core/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ pub mod payload;
pub mod plugins;
pub mod services;
pub mod system;
use services::*;
use system::*;
pub use device::Device;
pub use payload::Payload;
pub use services::Service;
use services::*;
use system::*;

pub struct Inner {
// services: Mutex<Vec<Arc<dyn Service + Send + Sync + 'static>>>,
Expand Down

0 comments on commit 49bc277

Please sign in to comment.