Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Rename stop and unregisterFolder methods #9252

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

erikjv
Copy link
Collaborator

@erikjv erikjv commented Dec 2, 2021

In case of stop this makes it clear if it is a temporary state
and the connection is resumed later (e.g. when the client exits),
or if it is permanent (e.g. when the sync older is going to be
removed).

So we can use it not only on Windows, but also on macOS.

`WinVfsSettingsVersion` has been removed, and for VFS and non-VFS cases
the `SettingsVersion` is used.
- FolderDefinition::load can never fail, so just return the newly
  loaded FolderDefinition instead of passing it in by reference.
  This also removes an if statement, reducing the complexity.
- FolderMan::addFolderInternal can never return a nullptr, so
  replace the if check in FolderMan::addFolder by an assert.
In case of `stop` this makes it clear if it is a temporary state
and the connection is resumed later (e.g. when the client exits),
or if it is permanent (e.g. when the sync older is going to be
removed).
@sonarcloud
Copy link

sonarcloud bot commented Dec 2, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@github-actions github-actions bot added the Stale label Mar 19, 2022
@github-actions github-actions bot closed this Mar 26, 2022
@TheOneRing TheOneRing reopened this Mar 26, 2022
@TheOneRing TheOneRing removed the Stale label Mar 26, 2022
@github-actions github-actions bot added the Stale label Apr 26, 2022
@github-actions github-actions bot closed this May 4, 2022
@TheOneRing TheOneRing removed the Stale label May 4, 2022
@TheOneRing TheOneRing reopened this May 4, 2022
@github-actions github-actions bot added the Stale label Jun 4, 2022
@github-actions github-actions bot closed this Jun 12, 2022
@TheOneRing
Copy link
Contributor

@erikjv ?

@TheOneRing TheOneRing reopened this Jun 13, 2022
@TheOneRing
Copy link
Contributor

@erikjv please decide on whether you want to continue with this

@github-actions github-actions bot removed the Stale label Jun 14, 2022
@erikjv erikjv requested a review from TheOneRing June 24, 2022 07:45
@erikjv erikjv changed the title Rename stop and unregisterFolder methods Draft: Rename stop and unregisterFolder methods Jun 24, 2022
@TheOneRing TheOneRing added this to the 4.0 milestone Jun 24, 2022
@erikjv
Copy link
Collaborator Author

erikjv commented Jun 24, 2022

This should go in together with https://github.com/owncloud/client-desktop-vfs-win/pull/7 . I'm postponing this until after getting the tests running on windows.

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.

2 participants