Skip to content

Pause sync before we terminate - #642

Merged
TheOneRing merged 1 commit into
mainfrom
work/sched2
Nov 5, 2025
Merged

TheOneRing merged 1 commit into
mainfrom
work/sched2

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

No description provided.

@TheOneRing
TheOneRing requested a review from Copilot November 5, 2025 09:37
@TheOneRing TheOneRing linked an issue Nov 5, 2025 that may be closed by this pull request

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 the slotEnableCurrentFolder function to improve code clarity and fix a logic bug. The changes make the variable currentlyPaused const, improve comment grammar, and reorder operations to ensure proper state management.

Key Changes:

  • Made currentlyPaused variable const and moved initialization to declaration
  • Reordered operations to set folder state before attempting to terminate sync
  • Fixed grammar in comment from "its" to "it's" and corrected "where" to "were"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/gui/accountsettings.cpp Resolved
That ensures that a folder is not rescheduled

Fixes: #632

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 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

} else {
// set paused to prevent reschedule
folder->setSyncPaused(true);
// terminate the run if we previously where syncing

Copilot AI Nov 5, 2025

Copy link

Choose a reason for hiding this comment

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

Corrected spelling of 'where' to 'were'.

Suggested change
// terminate the run if we previously where syncing
// terminate the run if we previously were syncing

Copilot uses AI. Check for mistakes.
@TheOneRing
TheOneRing merged commit 3ab87fc into main Nov 5, 2025
@TheOneRing
TheOneRing deleted the work/sched2 branch November 5, 2025 10:49
@openclouders openclouders mentioned this pull request Nov 5, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload continues while sync is paused

2 participants