mirror of https://github.com/zlatinb/muwire
allow opening containing folder only on files in the tree
parent
86e7a60c77
commit
8eddee320b
|
@ -634,7 +634,7 @@ class MainFrameController {
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void openContainingFolder() {
|
void openContainingFolder() {
|
||||||
def selected = view.selectedSharedFiles()
|
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"))
|
JOptionPane.showMessageDialog(null, trans("PLEASE_SELECT_ONE_FILE_FOLDER"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue