Activity map
This commit is contained in:
1 parent
3f79444852
commit
e320f19a76
4 files changed
+84
-10
No files matched your search
@@ -16,6 +16,7 @@ use std::sync::{Arc, Mutex};
|
||||
use tokio::task::spawn_blocking;
|
||||
|
||||
pub struct RepetitionState {
|
||||
state: Arc<Mutex<AppState>>,
|
||||
pub settings: CardSetSettings,
|
||||
pub set: CardSet,
|
||||
current_word: WordData,
|
||||
@@ -43,6 +44,7 @@ impl RepetitionState {
|
||||
let sink_handle = rodio::DeviceSinkBuilder::open_default_sink().unwrap();
|
||||
|
||||
RepetitionState {
|
||||
state,
|
||||
settings: set,
|
||||
set: card_set,
|
||||
current_word: word,
|
||||
@@ -109,6 +111,7 @@ impl RepetitionState {
|
||||
|_| RootMessage::Repetition(RepetitionMessage::PlayFinished),
|
||||
);
|
||||
}
|
||||
|
||||
Task::none()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user