diff --git a/jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java b/jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java index 6cd4c81cb32..762e4f18c71 100644 --- a/jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java +++ b/jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java @@ -114,7 +114,7 @@ public void addRecentFile(String filePath) { recentFiles.add(0, filePath); int count = recentFiles.size(); if (count > RECENT_FILES_COUNT) { - recentFiles.subList(0, count - RECENT_FILES_COUNT).clear(); + recentFiles.subList(RECENT_FILES_COUNT, count).clear(); } sync(); }