mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 17:15:35 +00:00
Fixed: #1615 Turning off Checking for modifications disables SWF loading
This commit is contained in:
@@ -1337,14 +1337,16 @@ public class Main {
|
||||
String fileName = si.getFile();
|
||||
if (fileName != null) {
|
||||
Configuration.addRecentFile(fileName);
|
||||
try {
|
||||
File dir = new File(fileName).getParentFile();
|
||||
if (!watchedDirectories.containsValue(dir)) {
|
||||
WatchKey key = dir.toPath().register(watcher, StandardWatchEventKinds.ENTRY_MODIFY);
|
||||
watchedDirectories.put(key, dir);
|
||||
if (watcher != null) {
|
||||
try {
|
||||
File dir = new File(fileName).getParentFile();
|
||||
if (!watchedDirectories.containsValue(dir)) {
|
||||
WatchKey key = dir.toPath().register(watcher, StandardWatchEventKinds.ENTRY_MODIFY);
|
||||
watchedDirectories.put(key, dir);
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
//ignore
|
||||
}
|
||||
} catch (IOException ex) {
|
||||
//ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1714,7 +1716,6 @@ public class Main {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (watcher != null) {
|
||||
watcherWorker = new SwingWorker() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user