Activity map
This commit is contained in:
@@ -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