Rename DictionaryTest to DictionaryQuiz

This commit is contained in:
micialware committed 2026-08-20 17:48:03 +03:00
1 parent c9508922f4
commit 9456eec2af
8 files changed
+35 -34

No files matched your search

+11 -6
View File
@@ -4,7 +4,7 @@ use crate::navigation::Page::PreviousPage;
use crate::navigation::{NavigatedPage, Page};
use crate::styling::*;
use crate::sync::SyncMessage::*;
use crate::{AppState, RootMessage, fill_state};
use crate::{fill_state, AppState, RootMessage};
use iced::widget::button::danger;
use iced::widget::container::rounded_box;
use iced::widget::{button, column, container, progress_bar, row, space, text, toggler};
@@ -59,7 +59,12 @@ impl NavigatedPage<SyncMessage> for SyncState {
.map(|_val: String| RootMessage::Sync(KeyCopied));
}
InitSync => {
return Task::perform(first_sync(), |id| RootMessage::Sync(IdReceived(id)));
return Task::perform(first_sync(), |id| {
match id {
Ok(id) => RootMessage::Sync(IdReceived(id)),
Err(_) => RootMessage::None
}
});
}
GetKey => {
return iced::clipboard::read()
@@ -218,10 +223,10 @@ impl SyncState {
]
}
}
.spacing(DEFAULT_SPACING)
.align_x(Center)
.width(Length::Shrink)
.into()
.spacing(DEFAULT_SPACING)
.align_x(Center)
.width(Length::Shrink)
.into()
}
/* fn app_updater(&self) -> Element<'_, SyncMessage> {