diff --git a/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java b/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java index 895e250ff51..ce59ad66550 100644 --- a/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java +++ b/jadx-gui/src/main/java/jadx/gui/ui/MainWindow.java @@ -462,6 +462,7 @@ public void renameInput(Path file) { List inputs = project.getFilePaths(); inputs.remove(file); inputs.add(targetPath); + refreshTree(inputs); } else { JOptionPane.showMessageDialog(this, @@ -471,7 +472,7 @@ public void renameInput(Path file) { } } - private void refreshTree(List inputs){ + private void refreshTree(List inputs) { project.setFilePaths(inputs); project.save(); reopen();