Merge pull request #3041 from Sundar-Gandu/master
This commit is contained in:
@@ -122,6 +122,7 @@ public class ClientUI
|
||||
private final Provider<ClientThread> clientThreadProvider;
|
||||
private final EventBus eventBus;
|
||||
private final boolean safeMode;
|
||||
private final String title;
|
||||
|
||||
private final CardLayout cardLayout = new CardLayout();
|
||||
private final Rectangle sidebarButtonPosition = new Rectangle();
|
||||
@@ -166,6 +167,7 @@ public class ClientUI
|
||||
this.clientThreadProvider = clientThreadProvider;
|
||||
this.eventBus = eventBus;
|
||||
this.safeMode = safeMode;
|
||||
this.title = RuneLiteProperties.getTitle();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -299,7 +301,7 @@ public class ClientUI
|
||||
return false;
|
||||
}
|
||||
|
||||
frame.setTitle(RuneLiteProperties.getTitle() + " - " + name);
|
||||
frame.setTitle(title + " - " + name);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
@@ -326,7 +328,7 @@ public class ClientUI
|
||||
// Try to enable fullscreen on OSX
|
||||
OSXUtil.tryEnableFullscreen(frame);
|
||||
|
||||
frame.setTitle(RuneLiteProperties.getTitle());
|
||||
frame.setTitle(title);
|
||||
frame.setIconImage(ICON);
|
||||
frame.getLayeredPane().setCursor(Cursor.getDefaultCursor()); // Prevent substance from using a resize cursor for pointing
|
||||
frame.setLocationRelativeTo(frame.getOwner());
|
||||
@@ -512,7 +514,7 @@ public class ClientUI
|
||||
frame.revalidateMinimumSize();
|
||||
|
||||
// Create tray icon (needs to be created after frame is packed)
|
||||
trayIcon = SwingUtil.createTrayIcon(ICON, RuneLiteProperties.getTitle(), frame);
|
||||
trayIcon = SwingUtil.createTrayIcon(ICON, title, frame);
|
||||
|
||||
// Move frame around (needs to be done after frame is packed)
|
||||
if (config.rememberScreenBounds() && !safeMode)
|
||||
@@ -1039,12 +1041,12 @@ public class ClientUI
|
||||
|
||||
if (player != null && player.getName() != null)
|
||||
{
|
||||
frame.setTitle(RuneLiteProperties.getTitle() + " - " + player.getName());
|
||||
frame.setTitle(title + " - " + player.getName());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
frame.setTitle(RuneLiteProperties.getTitle());
|
||||
frame.setTitle(title);
|
||||
}
|
||||
|
||||
if (frame.isAlwaysOnTopSupported())
|
||||
|
||||
Reference in New Issue
Block a user