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

Fix "open local or group folders" menu not showing #7730

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

nilsding
Copy link
Member

@nilsding nilsding commented Jan 8, 2025

This PR resolves #7719 where the dropdown menu wouldn't show up due to this error:

2025-01-08 10:56:23:327 [ warning default qrc:/qml/src/gui/tray/TrayFoldersMenuButton.qml:33 ]: qrc:/qml/src/gui/tray/TrayFoldersMenuButton.qml:33: Error: Cannot call method QQuickPopup::open on QQuickLoader_QML_48(0x5569fb4648d0)

--> wrapped the calls to the open/close methods in a closure, and now it works again:

Screenshot_20250108_110939

(no idea why the other icons don't show up in my local build)

This change also resolves the following ReferenceError when the window is being closed, which resulted in the menus staying opened:

2025-01-08 10:56:40:389 [ warning default qrc:/qml/src/gui/tray/MainWindow.qml:100 ]:   qrc:/qml/src/gui/tray/MainWindow.qml:100: ReferenceError: appsMenu is not defined

Signed-off-by: Jyrki Gadinger <[email protected]>
…olders menu work again

this change resolves this ReferenceError when the window is being closed:
```
2025-01-08 10:56:40:389 [ warning default qrc:/qml/src/gui/tray/MainWindow.qml:100 ]:   qrc:/qml/src/gui/tray/MainWindow.qml:100: ReferenceError: appsMenu is not defined
```

I also noticed that the "Open local or group folders" dropdown menu
wouldn't show up due to this error:
```
2025-01-08 10:56:23:327 [ warning default qrc:/qml/src/gui/tray/TrayFoldersMenuButton.qml:33 ]: qrc:/qml/src/gui/tray/TrayFoldersMenuButton.qml:33: Error: Cannot call method QQuickPopup::open on QQuickLoader_QML_48(0x5569fb4648d0)
```
--> wrapped the calls to the open/close methods in a closure

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding self-assigned this Jan 8, 2025
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7730-bf6b3ca7aeed9faadbd4afd98ac99fcb69adfcb9-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

Copy link

sonarqubecloud bot commented Jan 8, 2025

@mgallien mgallien added this to the 3.15.4 milestone Jan 8, 2025
@mgallien mgallien merged commit cfd36c7 into master Jan 8, 2025
14 of 17 checks passed
@mgallien mgallien deleted the bugfix/close-opened-menus branch January 8, 2025 13:27
@mgallien
Copy link
Collaborator

mgallien commented Jan 8, 2025

/backport to stable-3.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: "open local or group folders " from menu does nothing
3 participants