mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
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:
commit
63acfde182
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
~~~~~~~~
|
||||
|
|
|
@ -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 a new issue