Skip to content

Only count enabled spaces when computing the number of spaces to sync - #571

Merged
TheOneRing merged 1 commit into
mainfrom
work/count
Oct 7, 2025
Merged

TheOneRing merged 1 commit into
mainfrom
work/count

Conversation

@TheOneRing

Copy link
Copy Markdown
Contributor

Fixes: #568

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 fixes an issue where disabled spaces were being incorrectly counted when computing the number of spaces to sync. The change ensures that only enabled spaces are considered when calculating synced and unsynced space counts.

Key changes:

  • Changed data types from uint to uint64_t for space counters to handle larger values
  • Updated the space counting logic to filter out disabled spaces
  • Refactored the calculation method to be more explicit and readable

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/gui/accountsettings.h Updated property and member variable declarations to use uint64_t instead of uint
src/gui/accountsettings.cpp Implemented new logic to count only enabled spaces and refactored the calculation method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/gui/accountsettings.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 2 out of 2 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@TheOneRing
TheOneRing enabled auto-merge (rebase) October 7, 2025 08:58
@TheOneRing
TheOneRing merged commit 7c1684e into main Oct 7, 2025
@TheOneRing
TheOneRing deleted the work/count branch October 7, 2025 09:24
@openclouders openclouders mentioned this pull request Oct 7, 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.

Counter for availble spaces includes disabled spaces

2 participants