Skip to content

Commit ad7b65a

Browse files
committed
need to setup streaming for kb on wasm
1 parent 02dfc9c commit ad7b65a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/notation_kb/src/kb.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ impl NotationKnowledgeBase {
1515
app.init_resource::<IndexPanel>();
1616
app.add_startup_system(Self::setup_state);
1717
TabPlugin::setup_mouse_input(app);
18+
#[cfg(target_arch = "wasm32")]
19+
notation_bevy::prelude::StereoStream::init_streaming(app, true);
1820
app.add_system_set(
1921
SystemSet::on_update(NotationAssetsStates::Loaded)
2022
.with_system(IndexPanel::hack_settings)

apps/notation_kb/src/theory/scale.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ impl ScalePage {
147147
)
148148
}
149149
pub fn check_reload(&self, tab: &Tab) -> bool {
150-
self.scale != tab.meta.scale || self.key != tab.meta.key
150+
self.scale != tab.meta.scale || self.key != tab.meta.key || tab.bars.len() == 0
151151
}
152152
}

0 commit comments

Comments
 (0)