mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-219760 Editor may start faster
remove unneeded code from EditorWindow.trimToSize GitOrigin-RevId: d1ce322835e6ad13ce85dc37f3e84fb37b674065
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f79382ece1
commit
1f0737b35b
@@ -895,14 +895,9 @@ public class EditorWindow {
|
||||
|
||||
void trimToSize(final int limit, @Nullable final VirtualFile fileToIgnore, final boolean transferFocus) {
|
||||
getManager().getReady(this).doWhenDone(() -> {
|
||||
if (isDisposed()) return;
|
||||
final EditorComposite selectedComposite = getSelectedEditor();
|
||||
try {
|
||||
if (!isDisposed()) {
|
||||
doTrimSize(limit, fileToIgnore, UISettings.getInstance().getState().getCloseNonModifiedFilesFirst(), transferFocus);
|
||||
}
|
||||
finally {
|
||||
setSelectedEditor(selectedComposite, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user