Move setTitle to ClientUI
Move setTitle method from RuneLite to ClientUI. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
package net.runelite.client;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.eventbus.EventBus;
|
||||
import com.google.inject.Guice;
|
||||
import com.google.inject.Inject;
|
||||
@@ -184,9 +183,7 @@ public class RuneLite
|
||||
log.warn("unable to set look and feel", ex);
|
||||
}
|
||||
|
||||
gui = new ClientUI(client);
|
||||
setTitle(null);
|
||||
|
||||
gui = new ClientUI(properties, client);
|
||||
setupTrayIcon();
|
||||
});
|
||||
|
||||
@@ -220,18 +217,6 @@ public class RuneLite
|
||||
pluginManager.watch();
|
||||
}
|
||||
|
||||
public void setTitle(String extra)
|
||||
{
|
||||
if (!Strings.isNullOrEmpty(extra))
|
||||
{
|
||||
gui.setTitle(properties.getTitle() + " " + properties.getVersion() + " " + extra);
|
||||
}
|
||||
else
|
||||
{
|
||||
gui.setTitle(properties.getTitle() + " " + properties.getVersion());
|
||||
}
|
||||
}
|
||||
|
||||
private void setupTrayIcon()
|
||||
{
|
||||
if (!SystemTray.isSupported())
|
||||
|
||||
Reference in New Issue
Block a user