Skip to content

Commit

Permalink
fix(gui): make correct size truncate for recent files list
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Sep 8, 2018
1 parent 9be62fb commit 2de86b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jadx-gui/src/main/java/jadx/gui/settings/JadxSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2de86b6

Please sign in to comment.