Compare commits
2 Commits
00b8d540b3
...
55df70130c
Author | SHA1 | Date | |
---|---|---|---|
55df70130c | |||
5fbfc33b47 |
|
@ -141,6 +141,7 @@ public class Clifford implements ActionListener {
|
||||||
@Override
|
@Override
|
||||||
public void windowClosing(WindowEvent e)
|
public void windowClosing(WindowEvent e)
|
||||||
{
|
{
|
||||||
|
Main.deleteDir(new File(Main.inpath + "temp/")); // soundtrack gen
|
||||||
invoker.setEnabled(true);
|
invoker.setEnabled(true);
|
||||||
e.getWindow().dispose();
|
e.getWindow().dispose();
|
||||||
}
|
}
|
||||||
|
@ -150,6 +151,7 @@ public class Clifford implements ActionListener {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
public void actionPerformed(ActionEvent actionEvent) {
|
||||||
if (actionEvent.getSource() == cancelbtn) {
|
if (actionEvent.getSource() == cancelbtn) {
|
||||||
|
Main.deleteDir(new File(Main.inpath + "temp/")); // soundtrack gen
|
||||||
invoker.setEnabled(true);
|
invoker.setEnabled(true);
|
||||||
frame.dispose();
|
frame.dispose();
|
||||||
} else if (actionEvent.getSource() == savebtn && !creating) {
|
} else if (actionEvent.getSource() == savebtn && !creating) {
|
||||||
|
@ -228,6 +230,7 @@ public class Clifford implements ActionListener {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
JOptionPane.showMessageDialog(frame, "Mod file created", "Success", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(frame, "Mod file created", "Success", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
Main.deleteDir(new File(Main.inpath + "temp/")); // soundtrack gen
|
||||||
invoker.setEnabled(true);
|
invoker.setEnabled(true);
|
||||||
frame.dispose();
|
frame.dispose();
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,6 +268,11 @@ public class Suggs implements ActionListener, ListSelectionListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void save() {
|
private void save() {
|
||||||
|
if (tracklist.isEmpty() && sptrack == null && mptrack == null) {
|
||||||
|
JOptionPane.showMessageDialog(frame, "Please add at least one song to the playlist.", "Error", JOptionPane.ERROR_MESSAGE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
frame.setEnabled(false);
|
frame.setEnabled(false);
|
||||||
frame.setAlwaysOnTop(false);
|
frame.setAlwaysOnTop(false);
|
||||||
Main.deleteDir(new File(System.getProperty("user.home") + "/.firestar/temp/")); // starts with clean temp
|
Main.deleteDir(new File(System.getProperty("user.home") + "/.firestar/temp/")); // starts with clean temp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user