Skip to content

Conversation

@crwood
Copy link
Member

@crwood crwood commented Jan 21, 2022

Fixes #437

Also fixes two adjacent/related issues discovered along the way:

  • Leaving a magic-folder now also immediately removes that folder name from the internal Gridsync active folders list (MagicFolder.magic_folders). Previously, this state was only being updated when MagicFolderMonitor.do_check was being called -- resulting in a temporary situation in which the "Folders" view's context menu could display actions that were invalid for the given folder type (for example, offering the "stop syncing" action for a folder that was no longer active/syncing).
  • Removing a folder backup now also immediately removes that folder from the internal Gridsync known backups list (MagicFolder.remote_magic_folders). Likewise, this state was also only being updated when MagicFolderMonitor.do_check was being called -- resulting in a temporary situation in which it would not be possible to immeditaley re-add a folder that was recently removed until after another action was taken.

@crwood crwood merged commit 822674c into master Jan 21, 2022
@crwood crwood deleted the 437.idempotent-leave-folder branch January 21, 2022 01:11
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.

Removing a folder twice in rapid succession leads to error

2 participants