#1595 History of script search results per SWF

This commit is contained in:
Jindra Petřík
2021-02-22 21:48:08 +01:00
parent 0d2fcb0897
commit 4097d6b8f2
18 changed files with 528 additions and 27 deletions

View File

@@ -188,6 +188,8 @@ public class Main {
private static List<File> savedFiles = Collections.synchronizedList(new ArrayList<>());
public static SearchResultsStorage searchResultsStorage = new SearchResultsStorage();
//This method makes file watcher to shut up during our own file saving
public static void startSaving(File savedFile) {
savedFiles.add(savedFile);
@@ -1855,9 +1857,12 @@ public class Main {
}
});
flashDebugger.addConnectionListener(debugHandler);
searchResultsStorage.load();
} catch (IOException ex) {
logger.log(Level.SEVERE, "eeex", ex);
//ignore
}
});
}
@@ -2265,6 +2270,11 @@ public class Main {
}
public static void exit() {
try {
searchResultsStorage.save();
} catch (IOException ex) {
//ignore
}
Configuration.saveConfig();
if (mainFrame != null && mainFrame.getPanel() != null) {
mainFrame.getPanel().unloadFlashPlayer();