Repository navigation
Fix termination of running syncs - #554
Conversation
afc1145 to
7d0f1e8
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR refactors sync termination handling by removing the SyncAbortRequested state and centralizing termination logic in the SyncScheduler. The changes improve the sync lifecycle management by having a single point of control for sync termination instead of individual folders managing their own termination.
- Removes the
SyncAbortRequestedenum value and associated handling code - Centralizes sync termination in
SyncScheduler::terminateCurrentSync()method - Updates all callers to use the centralized termination approach
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/libsync/syncresult.h | Removes SyncAbortRequested enum value |
| src/libsync/syncresult.cpp | Removes display name and glyph handling for SyncAbortRequested |
| src/libsync/theme.cpp | Removes icon name handling for SyncAbortRequested |
| src/libsync/syncengine.h | Cleans up includes and removes _goingDown flag |
| src/libsync/syncengine.cpp | Simplifies destructor and abort logic |
| src/gui/scheduling/syncscheduler.h | Adds terminateCurrentSync() method declaration |
| src/gui/scheduling/syncscheduler.cpp | Implements centralized sync termination logic |
| src/gui/systray.cpp | Updates to use centralized termination |
| src/gui/folderstatusmodel.cpp | Removes SyncAbortRequested case handling |
| src/gui/folderman.cpp | Updates to use centralized termination approach |
| src/gui/folder.h | Removes slotTerminateSync() method declaration |
| src/gui/folder.cpp | Removes slotTerminateSync() implementation and updates connection types |
| src/gui/application.cpp | Adds proper sync termination during shutdown |
| src/gui/accountsettings.cpp | Updates to use centralized termination |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
7d0f1e8 to
56317de
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 14 out of 14 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.
6dcc320 to
abf40c9
Compare
abf40c9 to
96fd9d7
Compare
No description provided.