Finishing deunprap
This commit is contained in:
1 parent
a60ed37cd4
commit
1d24fe2631
5 files changed
+15
-9
No files matched your search
+9
-2
@@ -139,8 +139,15 @@ impl NavigatedPage<SyncMessage> for SyncState {
|
||||
DisableSync => {
|
||||
let mut state = self.state.lock();
|
||||
state.sync_data.key = None;
|
||||
delete_settings("SYNC_KEY".to_string(), &state.connection);
|
||||
delete_settings("AUTO_WEB_FETCH".to_string(), &state.connection);
|
||||
let save_result = || {
|
||||
delete_settings("SYNC_KEY".to_string(), &state.connection)?;
|
||||
delete_settings("AUTO_WEB_FETCH".to_string(), &state.connection)?;
|
||||
Ok::<(), NotificationData>(())
|
||||
};
|
||||
|
||||
if let Err(error) = save_result() {
|
||||
return push_error_task!(error);
|
||||
}
|
||||
}
|
||||
SwitchAutoSync => {
|
||||
self.auto_fetch = !self.auto_fetch;
|
||||
|
||||
Reference in new issue
Block a user