Skip to content

Commit ae1abfe

Browse files
committed
fix(file-provider): Offer local folder opening regardless of group folders
As I found during development, due to sandbox restrictions it is not possible to provide a deep link popup menu for group folders, given there are some. Neither the main app nor the extension are allowed to delegate the revelation to Finder for different reasons due to the sandboxing. Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent 9381842 commit ae1abfe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/gui/tray/TrayFoldersMenuButton.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ HeaderButton {
1717
signal folderEntryTriggered(string fullFolderPath, bool isGroupFolder)
1818

1919
required property var currentUser
20-
property bool userHasGroupFolders: currentUser.groupFolders.length > 0
20+
// Group folders are only navigable from this dropdown when the account has a
21+
// classic-sync local folder — sandbox restrictions stop us revealing descendants
22+
// of a file-provider domain in Finder, so file-provider accounts always use the
23+
// folder button as a single-click "reveal root container" affordance instead.
24+
property bool userHasGroupFolders: currentUser.hasLocalFolder && currentUser.groupFolders.length > 0
2125
property color parentBackgroundColor: "transparent"
2226

2327
function openMenu() {

0 commit comments

Comments
 (0)