fix parsing error
This commit is contained in:
parent
dd59aab748
commit
436e7f1ef5
@ -135,8 +135,8 @@ impl epi::App for MathApp {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
let do_update =
|
if parse_error.is_empty() {
|
||||||
chart_manager.update(func_str.clone(), *min_x, *max_x, *num_interval, *resolution);
|
let do_update = chart_manager.update(func_str.clone(), *min_x, *max_x, *num_interval, *resolution);
|
||||||
|
|
||||||
match do_update {
|
match do_update {
|
||||||
UpdateType::FULL => {
|
UpdateType::FULL => {
|
||||||
@ -147,6 +147,7 @@ impl epi::App for MathApp {
|
|||||||
UpdateType::FRONT => front_cache.invalidate(),
|
UpdateType::FRONT => front_cache.invalidate(),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
egui::CentralPanel::default().show(ctx, |ui| {
|
egui::CentralPanel::default().show(ctx, |ui| {
|
||||||
if !parse_error.is_empty() {
|
if !parse_error.is_empty() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user