mirror of https://github.com/nextcloud/desktop
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:
parent
846a3fe3d5
commit
2b598d1820
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue