Finishing deunprap

This commit is contained in:
micialware committed 2026-08-24 23:48:00 +03:00
1 parent a60ed37cd4
commit 1d24fe2631
5 files changed
+15 -9

No files matched your search

+9 -2
View File
@@ -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;