code cleanup
This commit is contained in:
parent
73a74917aa
commit
cca494e415
|
@ -639,12 +639,14 @@ 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) {
|
||||||
|
|
Loading…
Reference in New Issue