Commit 2de86b6d authored by Skylot's avatar Skylot

fix(gui): make correct size truncate for recent files list

parent 9be62fb1
...@@ -114,7 +114,7 @@ public class JadxSettings extends JadxCLIArgs { ...@@ -114,7 +114,7 @@ public class JadxSettings extends JadxCLIArgs {
recentFiles.add(0, filePath); recentFiles.add(0, filePath);
int count = recentFiles.size(); int count = recentFiles.size();
if (count > RECENT_FILES_COUNT) { if (count > RECENT_FILES_COUNT) {
recentFiles.subList(0, count - RECENT_FILES_COUNT).clear(); recentFiles.subList(RECENT_FILES_COUNT, count).clear();
} }
sync(); sync();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment