Browse Source

code cleanup

pull/22/head
Jannik 4 years ago
parent
commit
cca494e415
  1. 23
      src/main/java/kellerkinder/HomeFlix/application/MainWindowController.java

23
src/main/java/kellerkinder/HomeFlix/application/MainWindowController.java

@ -638,13 +638,15 @@ 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();
// }
private void openfolderbtnclicked() {
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) {

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close