mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: show window with all local changes when "Default" changelist node is hidden
follow-up:a494ed9063cf4792aed2
This commit is contained in:
@@ -8,6 +8,7 @@ import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.fileChooser.actions.VirtualFileDeleteProvider;
|
||||
import com.intellij.openapi.fileEditor.OpenFileDescriptor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.vcs.FilePath;
|
||||
import com.intellij.openapi.vcs.FileStatus;
|
||||
import com.intellij.openapi.vcs.VcsDataKeys;
|
||||
@@ -371,6 +372,9 @@ public class ChangesListView extends Tree implements TypeSafeDataProvider, DnDAw
|
||||
if (node instanceof ChangesBrowserChangeListNode) {
|
||||
return ((ChangesBrowserChangeListNode)node).getAllChangesUnder();
|
||||
}
|
||||
if (node == getRoot() && Registry.is("vcs.skip.single.default.changelist")) {
|
||||
return getRoot().getAllChangesUnder();
|
||||
}
|
||||
node = (DefaultMutableTreeNode)node.getParent();
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user