allow opening containing folder only on files in the tree

auto-update
Zlatin Balevsky 2021-10-14 12:11:13 +01:00
parent 86e7a60c77
commit 8eddee320b
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ class MainFrameController {
@ControllerAction
void openContainingFolder() {
def selected = view.selectedSharedFiles()
if (selected == null || selected.size() != 1) {
if (selected == null || selected.size() != 1 || !view.selectedFolders().isEmpty()) {
JOptionPane.showMessageDialog(null, trans("PLEASE_SELECT_ONE_FILE_FOLDER"))
return
}