mirror of
https://github.com/csd4ni3l/soundboard.git
synced 2026-03-10 09:09:24 +01:00
Fix reload sound system button not replacing sound system but output stream of current sound system
This commit is contained in:
@@ -344,7 +344,7 @@ fn ui_system(mut contexts: EguiContexts, mut app_state: ResMut<AppState>) -> Res
|
|||||||
.clicked()
|
.clicked()
|
||||||
{
|
{
|
||||||
app_state.currently_playing.clear();
|
app_state.currently_playing.clear();
|
||||||
app_state.sound_system.output_stream = reload_sound();
|
app_state.sound_system = reload_sound();
|
||||||
println!("Sucessfully reloaded sound system!");
|
println!("Sucessfully reloaded sound system!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user