1
0
mirror of https://github.com/Kopano-dev/kopano-ol-extension.git synced 2023-10-10 13:37:40 +02:00

[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 // Ignore the root nodes
if (node is StoreTreeNode) if (node is StoreTreeNode)
{ {
if (!_folders.SupportsWholeStore) if (!_folders.SupportsWholeStore || !node.HasCheckBox)
continue; continue;
StoreTreeNode storeNode = (StoreTreeNode)node; StoreTreeNode storeNode = (StoreTreeNode)node;

View File

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