Merge pull request #4774 from nextcloud/feature/double-click-open-folder

Double-clicking tray icon opens currently-selected user's local folder (if available)
This commit is contained in:
Claudio Cambra 2022-08-02 19:37:00 +02:00 committed by GitHub
commit 63acfde182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -30,6 +30,8 @@ A right click on the icon provides the following menu:
.. NOTE::
This menu is not available on macOS.
A double-click on the icon will open the currently-selected user's locally synced folder.
Settings
~~~~~~~~
@ -298,4 +300,4 @@ You can now share a file directly in a conversation in Talk and view the sharee
|
.. image:: images/share-dialog-view-profile.png
:alt: shared dialog sharing options
:alt: shared dialog sharing options

View file

@ -159,7 +159,9 @@ void ownCloudGui::slotOpenMainDialog()
void ownCloudGui::slotTrayClicked(QSystemTrayIcon::ActivationReason reason)
{
if (reason == QSystemTrayIcon::Trigger) {
if (reason == QSystemTrayIcon::DoubleClick && UserModel::instance()->currentUser()->hasLocalFolder()) {
UserModel::instance()->openCurrentAccountLocalFolder();
} else if (reason == QSystemTrayIcon::Trigger) {
if (OwncloudSetupWizard::bringWizardToFrontIfVisible()) {
// brought wizard to front
} else if (_shareDialogs.size() > 0) {