mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-47639: IDEA-212385 open recent file in the current window
(cherry picked from commit dafdbbec66580a01895001d41cb63f28a060a87a) GitOrigin-RevId: 59b33bdcccb101699a92e3b90ab5ef96a7e49ae1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f40373e469
commit
bbc59943cb
@@ -1065,7 +1065,7 @@ public class Switcher extends AnAction implements DumbAware {
|
||||
UISettingsState settings = UISettings.getInstance().getState();
|
||||
boolean oldValue = settings.getReuseNotModifiedTabs();
|
||||
settings.setReuseNotModifiedTabs(false);
|
||||
manager.openFile(file, true, true);
|
||||
manager.openFile(file, true, UISettings.getInstance().getEditorTabPlacement() != UISettings.TABS_NONE);
|
||||
if (oldValue) {
|
||||
CommandProcessor.getInstance().executeCommand(project, () -> settings.setReuseNotModifiedTabs(true), "", null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user