Skip to content

Commit

Permalink
[visualbndbuild]Fix some log issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rgiot committed Aug 13, 2023
1 parent 76722d4 commit 7203a28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpclib-visual-bndbuild/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ impl BndBuildApp {
self.file_error = Some(err.to_string());
}
}
self.logs.clear();
}

pub fn update_cache(&mut self) {
Expand Down Expand Up @@ -306,6 +305,7 @@ impl BndBuildApp {
if ui.add(Button::new(fname.display().to_string()).wrap(false)).clicked() {
self.load(fname);
ui.close_menu();
self.logs.clear();
}
}
});
Expand Down Expand Up @@ -371,8 +371,6 @@ impl BndBuildApp {
.show(ui, |ui| {
ui.code(&self.logs);
})
// .scroll_to_me(Some(egui::Align::Max))

;
}

Expand Down Expand Up @@ -545,12 +543,14 @@ impl eframe::App for BndBuildApp {

if let Some(path) = p {
self.load(path);
self.logs.clear();
ctx.request_repaint_after(REFRESH_DURATION); // ensure progress will be displayed
}

// Handle reload
if self.request_reload {
self.request_reload = false;
self.logs.clear();
self.load(self.filename.clone().unwrap());
ctx.request_repaint_after(REFRESH_DURATION); // ensure progress will be displayed
}
Expand Down

0 comments on commit 7203a28

Please sign in to comment.