Skip to content

Commit

Permalink
fix(library): chart list loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Mivik committed Jul 5, 2023
1 parent e0984bb commit 3f0ea40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions phira/src/page/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ impl Page for LibraryPage {
}
if self.btn_local.touch(touch, t) {
self.switch_to_type(s, ChartListType::Local);
self.online_task = None;
return Ok(true);
}
let to_type = [
Expand Down
2 changes: 2 additions & 0 deletions phira/src/scene/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::{import_chart, itl, L10N_LOCAL};
use crate::{
charts_view::NEED_UPDATE,
data::LocalChart,
dir, get_data, get_data_mut,
mp::MPPanel,
Expand Down Expand Up @@ -321,6 +322,7 @@ impl Scene for MainScene {
get_data_mut().charts.push(chart);
save_data()?;
self.state.reload_local_charts();
NEED_UPDATE.store(true, Ordering::Relaxed);
}
}
self.import_task = None;
Expand Down

0 comments on commit 3f0ea40

Please sign in to comment.