Skip to content

Commit e2cd89b

Browse files
committed
fix kb
1 parent d27a7fb commit e2cd89b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

apps/notation_kb/src/index_panel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@ impl IndexPanel {
246246
) {
247247
(&mut index)._index_audio(&mut stream);
248248
}
249-
pub fn make_tab(&self, _tab_path: String) -> Option<ProtoTab> {
250-
Some(match self.current_page_id {
249+
pub fn make_tab(&self, _tab_path: String) -> ProtoTab {
250+
match self.current_page_id {
251251
Self::SCALE => {
252252
self.scale.make_tab()
253253
},
254254
_ => Self::make_default_tab(),
255-
})
255+
}
256256
}
257257
pub fn make_default_tab() -> ProtoTab {
258258
ProtoTab::new_empty()

apps/notation_kb/src/kb.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::sync::Arc;
2-
31
use notation_bevy::bevy::prelude::*;
42
//use notation_bevy::bevy::input::mouse::{MouseMotion, MouseWheel, MouseScrollUnit};
53

@@ -48,7 +46,7 @@ impl NotationKnowledgeBase {
4846
index: Res<IndexPanel>,
4947
) {
5048
NotationApp::load_tab(&mut commands, &time, &mut windows, &mut state, &mut theme, &settings, &mut evts, &entities, &viewer_query, |tab_path| {
51-
index.make_tab(tab_path)
49+
Some(TabAsset::from(index.make_tab(tab_path)))
5250
})
5351
}
5452
fn on_window_resized(

0 commit comments

Comments
 (0)