prevent opening a file when double-clicking on a folder

auto-update
Zlatin Balevsky 2021-10-14 11:56:37 +01:00
parent 0929ed6f14
commit 86e7a60c77
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,8 @@ class MainFrameController {
List<SharedFile> selected = view.selectedSharedFiles()
if (selected == null || selected.size() != 1)
return
if (!view.selectedFolders().isEmpty())
return
SharedFile sf = selected[0]
Desktop.getDesktop().open(sf.file)
}