livestreamer auswahlmenü.

This commit is contained in:
toksikk
2015-11-07 12:42:44 +01:00
parent 7ed9d8689c
commit 14db1c0581
+7 -1
View File
@@ -40,7 +40,13 @@ public class Main {
}
public static void initNewConfig() {
c = new Config();
c.setLSPath("e:\\downloads\\livestreamer-v1.11.1\\livestreamer.exe");
JFrame jf = new JFrame();
JFileChooser jfc = new JFileChooser();
jfc.setDialogTitle("Livestreamer Programmdatei auswählen");
jfc.showOpenDialog(jf);
if (jfc.getSelectedFile() == null) System.exit(-1);
c.setLSPath(jfc.getSelectedFile().getAbsolutePath());
jf.dispose();
ConfigFileIOHandler.save(c);
}