Repository navigation
Abort sync if connection is lost - #562
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements connection loss handling to abort synchronization when network connectivity is lost. The changes remove the freshConnectionAttempt() method and replace it with direct calls to checkConnectivity(), while also improving state change detection and conditional logic for folder synchronization.
- Removes deprecated
freshConnectionAttempt()method and related typedef for cleaner API - Improves state change detection in
setState()method using a dedicated boolean flag - Adds specific state checks for disconnected/signed-out accounts in folder synchronization logic
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/gui/networksettings.cpp | Replaces freshConnectionAttempt() call with checkConnectivity(true) |
| src/gui/folderman.cpp | Adds specific state condition for disconnected/signed-out accounts |
| src/gui/accountstate.h | Removes typedef and method declaration, changes enum type to uint8_t |
| src/gui/accountstate.cpp | Removes method implementation and improves state change logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
707b230 to
d0e14fb
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Fixes: #492