Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
fix everything breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
dekvall committed Mar 13, 2020
1 parent 915ad23 commit 2a9f661
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/dekvall/fullscreen/FullscreenPlugin.java
Expand Up @@ -58,11 +58,12 @@ protected void startUp() throws Exception
{
log.info("Fullscreen started!");
gd = clientUI.getGraphicsConfiguration().getDevice();
Frame tempParent = Frame.getFrames()[0];

if (configManager.getConfig(RuneLiteConfig.class).enableCustomChrome())
{
log.info("You must disable custom chrome to enable fullscreen");
SwingUtilities.invokeLater(() -> JOptionPane.showMessageDialog(null,
SwingUtilities.invokeLater(() -> JOptionPane.showMessageDialog(tempParent,
"You must disable custom chrome to enable fullscreen",
"Could not enter fullscreen mode",
JOptionPane.ERROR_MESSAGE));
Expand All @@ -72,7 +73,7 @@ protected void startUp() throws Exception
if (!gd.isFullScreenSupported())
{
log.info("Fullscreen is not supported on your device, sorry :(");
SwingUtilities.invokeLater(() -> JOptionPane.showMessageDialog(null,
SwingUtilities.invokeLater(() -> JOptionPane.showMessageDialog(tempParent,
"Fullscreen is not supported on your device, sorry :(",
"Could not enter fullscreen mode",
JOptionPane.ERROR_MESSAGE));
Expand Down

0 comments on commit 2a9f661

Please sign in to comment.