Skip to content

Commit

Permalink
infopanel: null check bootstrap mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain94 committed Nov 2, 2019
1 parent 1fe3c23 commit e7adeab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/net/runelite/launcher/InfoPanel.java
Expand Up @@ -114,8 +114,11 @@ class InfoPanel extends JPanel
c.gridy++;

// bootstrap
this.add(createPanelTextButton("Mode: " + mode), c);
c.gridy++;
if (mode != null)
{
this.add(createPanelTextButton("Mode: " + mode), c);
c.gridy++;
}

final JLabel logsFolder = createPanelButton("Open logs folder", null, () -> LinkBrowser.openLocalFile(LOGS_DIR));
this.add(logsFolder, c);
Expand Down

0 comments on commit e7adeab

Please sign in to comment.