Skip to content

Fix termination of running syncs - #554

Merged
TheOneRing merged 2 commits into
mainfrom
work/fix_terminate
Sep 25, 2025
Merged

TheOneRing merged 2 commits into
mainfrom
work/fix_terminate

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

No description provided.

@TheOneRing TheOneRing linked an issue Sep 25, 2025 that may be closed by this pull request
@TheOneRing
TheOneRing requested a review from Copilot September 25, 2025 09:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 SyncAbortRequested enum 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.

Comment thread src/gui/folderman.cpp Resolved
Comment thread src/gui/scheduling/syncscheduler.cpp Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/gui/scheduling/syncscheduler.cpp Resolved
Comment thread src/gui/folder.cpp Resolved
@TheOneRing
TheOneRing enabled auto-merge (rebase) September 25, 2025 09:45
@TheOneRing
TheOneRing merged commit 5872ea2 into main Sep 25, 2025
@TheOneRing
TheOneRing deleted the work/fix_terminate branch September 25, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync stuck in preparing for sync

2 participants