This commit is contained in:
2026-05-05 12:06:17 +03:00
parent 9cb034066e
commit 99991a67a7
9 changed files with 17 additions and 42 deletions
+2 -4
View File
@@ -15,7 +15,6 @@ use tokio::task::spawn_blocking;
pub struct RepetitionState {
pub settings: CardSetSettings,
pub set: CardSet,
pub state: Arc<Mutex<AppState>>,
current_word: WordData,
current_statistic: CardStatistics,
open: bool,
@@ -43,7 +42,6 @@ impl RepetitionState {
RepetitionState {
settings: set,
set: card_set,
state,
current_word: word,
current_statistic: stat,
open: false,
@@ -86,7 +84,7 @@ impl RepetitionState {
self.answer(WordOpenMode::None)
} else {
self.open = true;
return Task::none();
Task::none()
}
}
@@ -223,7 +221,7 @@ impl RepetitionState {
}
impl KeyPressedPage for RepetitionState {
fn press(&mut self, message: &keyboard::Event) -> iced::Task<RootMessage> {
fn press(&mut self, message: &keyboard::Event) -> Task<RootMessage> {
if let keyboard::Event::KeyPressed {
key: _,
modified_key: _,