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

@ -638,13 +638,15 @@ public class MainWindowController {
} }
@FXML @FXML
private void openfolderbtnclicked(){ private void openfolderbtnclicked() {
//TODO rework String dest = new File(datPath).getParentFile().getAbsolutePath();
// try { if (!System.getProperty("os.name").contains("Linux")) {
// Desktop.getDesktop().open(new File(getPath())); //open path when button is clicked try {
// } catch (IOException e) { Desktop.getDesktop().open(new File(dest));
// e.printStackTrace(); } catch (IOException e) {
// } e.printStackTrace();
}
}
} }
@FXML @FXML
@ -985,13 +987,6 @@ public class MainWindowController {
InputStream inputStream = new FileInputStream(main.getConfigFile()); InputStream inputStream = new FileInputStream(main.getConfigFile());
props.loadFromXML(inputStream); // new input-stream from .xml 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 { try {
setStreamingPath(props.getProperty("streamingPath")); setStreamingPath(props.getProperty("streamingPath"));
} catch (Exception e) { } catch (Exception e) {