aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6b964981a47..a3c868789fc 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -707,8 +707,10 @@
tr.addClass('highlighted');
this._currentFileModel = model;
+ const secondaryActionsOpen = Boolean(tr.find('.actions-secondary-vue').length)
+
// open sidebar and set file
- if (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== '')) {
+ if (!secondaryActionsOpen && (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== ''))) {
OCA.Files.Sidebar.open(path.replace('//', '/'))
}
},