Notification base

This commit is contained in:
micialware committed 2026-08-23 21:00:48 +03:00
1 parent dfaff30efa
commit e1bfd9494d
4 files changed
+177 -9

No files matched your search

+2
View File
@@ -12,6 +12,7 @@ use iced::{Center, Element, Fill, Font, Length, Task};
use parking_lot::Mutex;
use std::sync::Arc;
use std::time::Duration;
use crate::notification::{NotificationRequest, NotificationData};
#[derive(Clone)]
pub enum SyncMessage {
@@ -128,6 +129,7 @@ impl NavigatedPage<SyncMessage> for SyncState {
state.decks = updated_state.decks;
state.dictionary = updated_state.dictionary;
state.word_groups = updated_state.word_groups;
return Task::done(RootMessage::PushNotification(NotificationRequest::Info(NotificationData::DataLoaded)))
}
Disable => {}
DisableSync => {