mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-16 12:02:00 +00:00
Refreshing Save buttons when files were modified outside application
This commit is contained in:
@@ -2364,12 +2364,19 @@ public class Main {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (OpenableSourceInfo info : sourceInfos) {
|
||||
final String infoFile = info.getFile();
|
||||
if (infoFile != null && new File(infoFile).equals(fullPath)) {
|
||||
for (OpenableSourceInfo info : sourceInfos) {
|
||||
final String infoFile = info.getFile();
|
||||
if (infoFile != null && new File(infoFile).equals(fullPath)) {
|
||||
for (OpenableList list :Main.getMainFrame().getPanel().getSwfs()) {
|
||||
if (info == list.sourceInfo) {
|
||||
list.setModified();
|
||||
}
|
||||
}
|
||||
|
||||
View.execInEventDispatchLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mainFrame.getPanel().refreshTree();
|
||||
if (filesChangedDialog == null) {
|
||||
filesChangedDialog = new FilesChangedDialog(Main.mainFrame.getWindow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user