Skip to content

Commit

Permalink
Fix #IDEA-273119: fix welcome screen on mac (2nd try)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 43b7da10cb0da102dcfb5f5bb4edc775b521925e
  • Loading branch information
jubi20 authored and intellij-monorepo-bot committed Jul 21, 2021
1 parent 8c122ad commit d914fa7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ public class FlatWelcomeFrame extends JFrame implements IdeFrame, Disposable, Ac
private final AbstractWelcomeScreen myScreen;
private WelcomeBalloonLayoutImpl myBalloonLayout;
private boolean myDisposed;
private final DefaultFrameHeader myHeader;
private DefaultFrameHeader myHeader;

public FlatWelcomeFrame() {
SplashManager.hideBeforeShow(this);

JRootPane rootPane = getRootPane();
myBalloonLayout = new WelcomeBalloonLayoutImpl(rootPane, JBUI.insets(8));
myScreen = USE_TABBED_WELCOME_SCREEN ? new TabbedWelcomeScreen() : new FlatWelcomeScreen();
myHeader = new DefaultFrameHeader(this);

if (IdeFrameDecorator.isCustomDecorationActive()) {
myHeader = new DefaultFrameHeader(this);
JComponent holder = CustomFrameDialogContent
.getCustomContentHolder(this, myScreen.getWelcomePanel(), myHeader);
setContentPane(holder);
Expand Down

0 comments on commit d914fa7

Please sign in to comment.