browse file directory exception

This commit is contained in:
MeexReay 2024-04-22 13:28:45 +03:00
parent 38dad10048
commit efcc61b578

View File

@ -104,9 +104,13 @@ public class RecordWidget implements Drawable, Widget {
if (Desktop.isDesktopSupported()) { if (Desktop.isDesktopSupported()) {
Desktop desk = Desktop.getDesktop(); Desktop desk = Desktop.getDesktop();
try { try {
desk.browse(record.getFile().toURI()); desk.browseFileDirectory(record.getFile());
} catch (IOException e) { } catch (Exception e) {
throw new RuntimeException(e); try {
desk.browse(record.getFile().toURI());
} catch (IOException ex) {
throw new RuntimeException(ex);
}
} }
} }
}).dimensions(parent.getX() + getX() + 77,parent.getY() + getY() + 4 + 14, 38, 13).build(); }).dimensions(parent.getX() + getX() + 77,parent.getY() + getY() + 4 + 14, 38, 13).build();