diff options
author | Claudio Cambra <claudio.cambra@gmail.com> | 2022-07-25 14:43:54 +0300 |
---|---|---|
committer | Claudio Cambra <claudio.cambra@gmail.com> | 2022-08-01 18:37:40 +0300 |
commit | 58f9dfe6d1e84b919829368e056a0b8ff9250a87 (patch) | |
tree | c401aac1a224592bf4f6dec78acbba693215088e | |
parent | cf72f460abb723240639e0f71d6e7bd13b266aa8 (diff) |
Double-clicking tray icon opens currently-selected user's local folder (if available)feature/double-click-open-folder
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
-rw-r--r-- | doc/visualtour.rst | 4 | ||||
-rw-r--r-- | src/gui/owncloudgui.cpp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/visualtour.rst b/doc/visualtour.rst index 05d42e725..4081dea17 100644 --- a/doc/visualtour.rst +++ b/doc/visualtour.rst @@ -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
\ No newline at end of file + :alt: shared dialog sharing options diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 97a26afa4..db4d4e3c6 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -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) { |