Double-clicking tray icon opens currently-selected user's local folder (if available)

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
This commit is contained in:
Claudio Cambra 2022-07-25 13:43:54 +02:00
parent 846a3fe3d5
commit 2b598d1820
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) {