mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
VCS Settings: hide error panel if there is nothing to display initially.
This commit is contained in:
+3
@@ -418,6 +418,9 @@ public class VcsDirectoryConfigurationPanel extends JPanel implements Configurab
|
||||
errorPanel.add(vcsRootErrorLabel);
|
||||
}
|
||||
}
|
||||
if (errorPanel.getComponentCount() == 0) {
|
||||
pane.setVisible(false);
|
||||
}
|
||||
pane.setMinimumSize(new Dimension(-1, calcMinHeight(errorPanel, DEFAULT_HEIGHT)));
|
||||
pane.setMaximumSize(new Dimension(-1, DEFAULT_HEIGHT));
|
||||
return pane;
|
||||
|
||||
Reference in New Issue
Block a user