1.23 Add setting for show when compact middle packages | 增加折叠中间包时显示中间包注释设置 Fixed #9

This commit is contained in:
林万程
2022-08-24 22:31:32 +08:00
parent 7fa464855a
commit 9adc3775b7
6 changed files with 24 additions and 3 deletions

View File

@@ -131,6 +131,10 @@ public class Tree implements ProjectViewNodeDecorator {
if (docComment != null) {
return docComment;
}
AppSettingsState instance = AppSettingsState.getInstance();
if (!instance.compact) {
return null;
}
PsiDirectory parent = child.getParent();
if (parent == null) {
return null;