runelite-client: Don't check if customChrome is enabled after startup
This value is locked in at startup, the config value is irrelevant to what should actually be happening
This commit is contained in:
@@ -31,7 +31,6 @@ import java.awt.Frame;
|
||||
import java.awt.Image;
|
||||
import java.awt.SystemTray;
|
||||
import java.awt.TrayIcon;
|
||||
import java.awt.Window;
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.WindowAdapter;
|
||||
@@ -59,7 +58,6 @@ import net.runelite.client.ui.ColorScheme;
|
||||
import net.runelite.client.ui.NavigationButton;
|
||||
import net.runelite.client.ui.components.CustomScrollBarUI;
|
||||
import org.pushingpixels.substance.internal.SubstanceSynapse;
|
||||
import org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities;
|
||||
|
||||
/**
|
||||
* Various Swing utilities.
|
||||
@@ -279,15 +277,4 @@ public class SwingUtil
|
||||
navigationButton.setOnSelect(button::doClick);
|
||||
return button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if custom substance title pane is present.
|
||||
*
|
||||
* @param frame the parent frame
|
||||
* @return true if title pane is present
|
||||
*/
|
||||
public static boolean isCustomTitlePanePresent(final Window frame)
|
||||
{
|
||||
return SubstanceCoreUtilities.getTitlePaneComponent(frame) != null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user