Notification base
This commit is contained in:
1 parent
dfaff30efa
commit
e1bfd9494d
4 files changed
+177
-9
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user