jess 8 年之前
父节点
当前提交
c33c887714
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ui/view/GUI.java

+ 1 - 1
src/ui/view/GUI.java

@@ -1951,7 +1951,7 @@ public class GUI<E> implements CategoryListener {
 
 
 		String autoPath = System.getProperty("user.home") + "/HolonGUI/Autosave/";
 		String autoPath = System.getProperty("user.home") + "/HolonGUI/Autosave/";
 		File dest = new File(autoPath);
 		File dest = new File(autoPath);
-		if (controller.HasOldAutoSave()) {
+		if (dest.listFiles().length > 1) {
 			int dialogButton = JOptionPane.YES_NO_OPTION;
 			int dialogButton = JOptionPane.YES_NO_OPTION;
 			int dialogResult = JOptionPane.showConfirmDialog(null, "Old autosave file was found, should it be loaded?",
 			int dialogResult = JOptionPane.showConfirmDialog(null, "Old autosave file was found, should it be loaded?",
 					warningText, dialogButton);
 					warningText, dialogButton);