mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-26 20:35:33 +00:00
Added Show imported files on script import, able to cancel import
This commit is contained in:
@@ -196,6 +196,8 @@ public class Main {
|
||||
|
||||
public static SearchResultsStorage searchResultsStorage = new SearchResultsStorage();
|
||||
|
||||
public static CancellableWorker importWorker = null;
|
||||
|
||||
//This method makes file watcher to shut up during our own file saving
|
||||
public static void startSaving(File savedFile) {
|
||||
savedFiles.add(savedFile);
|
||||
@@ -1046,6 +1048,9 @@ public class Main {
|
||||
if (event.equals("rename")) {
|
||||
startWork(AppStrings.translate("work.renaming") + "..." + (String) data, null);
|
||||
}
|
||||
if (event.equals("importing_as")) {
|
||||
startWork(AppStrings.translate("work.importing_as") + "..." + (String) data, importWorker);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user