Skip to content

Commit 61bbb1e

Browse files
committed
chore: update code for new egui version
1 parent a859933 commit 61bbb1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ impl eframe::App for LogViewerApp {
771771
ui.add_space(16.0);
772772
}
773773

774-
egui::widgets::global_dark_light_mode_buttons(ui);
774+
egui::widgets::global_theme_preference_buttons(ui);
775775
});
776776
});
777777

@@ -799,7 +799,7 @@ impl eframe::App for LogViewerApp {
799799
ui.heading("Details");
800800
});
801801
egui::ScrollArea::horizontal()
802-
.id_source("details area")
802+
.id_salt("details area")
803803
.show(ui, |ui| {
804804
ui.push_id("table details", |ui| self.show_log_details(ui));
805805
});
@@ -810,7 +810,7 @@ impl eframe::App for LogViewerApp {
810810

811811
egui::CentralPanel::default().show_inside(ui, |ui| {
812812
egui::ScrollArea::horizontal()
813-
.id_source("log lines")
813+
.id_salt("log lines")
814814
.show(ui, |ui| {
815815
ui.push_id("table log lines", |ui| self.show_log_lines(ui));
816816
});

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async fn main() -> eframe::Result<()> {
2020
eframe::run_native(
2121
"Log Viewer",
2222
native_options,
23-
Box::new(|cc| Box::new(log_viewer::LogViewerApp::new(cc))),
23+
Box::new(|cc| Ok(Box::new(log_viewer::LogViewerApp::new(cc)))),
2424
)
2525
}
2626

0 commit comments

Comments
 (0)