[KOE-166] Disabled whole store sharing option for stores that have no email address, as they will never be successfully opened.

This commit is contained in:
Patrick Simpson 2018-07-04 13:36:07 +03:00
parent c0f456aac3
commit 8cf69d2727
2 changed files with 2 additions and 2 deletions

View File

@ -716,7 +716,7 @@ namespace Acacia.Features.SharedFolders
// Ignore the root nodes
if (node is StoreTreeNode)
{
if (!_folders.SupportsWholeStore)
if (!_folders.SupportsWholeStore || !node.HasCheckBox)
continue;
StoreTreeNode storeNode = (StoreTreeNode)node;

View File

@ -102,7 +102,7 @@ namespace Acacia.Features.SharedFolders
ChildLoader = new UserFolderLoader(this, folders, user);
ChildLoader.ReloadOnCloseOpen = true;
HasCheckBox = folders.SupportsWholeStore;
HasCheckBox = folders.SupportsWholeStore && !string.IsNullOrWhiteSpace(user.EmailAddress);
ApplyReadOnly(this, IsReadOnly);
// TODO: better icons, better way of handling this