code cleanup

This commit is contained in:
Jannik 2018-03-04 20:19:46 +01:00
parent 73a74917aa
commit cca494e415
1 changed files with 9 additions and 14 deletions

View File

@ -639,12 +639,14 @@ public class MainWindowController {
@FXML
private void openfolderbtnclicked() {
//TODO rework
// try {
// Desktop.getDesktop().open(new File(getPath())); //open path when button is clicked
// } catch (IOException e) {
// e.printStackTrace();
// }
String dest = new File(datPath).getParentFile().getAbsolutePath();
if (!System.getProperty("os.name").contains("Linux")) {
try {
Desktop.getDesktop().open(new File(dest));
} catch (IOException e) {
e.printStackTrace();
}
}
}
@FXML
@ -985,13 +987,6 @@ public class MainWindowController {
InputStream inputStream = new FileInputStream(main.getConfigFile());
props.loadFromXML(inputStream); // new input-stream from .xml
// try {
// setPath(props.getProperty("path")); // read path from property
// } catch (Exception e) {
// LOGGER.error("cloud not load path", e);
// setPath("");
// }
try {
setStreamingPath(props.getProperty("streamingPath"));
} catch (Exception e) {