Move setTitle to ClientUI

Move setTitle method from RuneLite to ClientUI.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2017-12-24 03:34:42 +01:00
parent bd521acbb0
commit 06836b3e1d
3 changed files with 23 additions and 24 deletions

View File

@@ -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())