Move the notification options to Notifier

- Move enabling of tray notifications to RuneLiteConfig
- Move request when focused notification option to RuneLiteConfig and
use it in notifier
- Move request window focus to RuneLiteConfig and use it in notifier
- Change Notifier to use Guice for creation

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-02-28 10:48:32 +01:00
parent f1b541473f
commit 6ffe5da929
5 changed files with 76 additions and 37 deletions

View File

@@ -43,7 +43,6 @@ import java.util.Objects;
import java.util.Set;
import joptsimple.OptionSet;
import net.runelite.api.Client;
import net.runelite.client.Notifier;
import net.runelite.client.RuneLite;
import net.runelite.client.RuneLiteModule;
import net.runelite.client.ui.ClientUI;
@@ -74,9 +73,6 @@ public class PluginManagerTest
@Mock
Client client;
@Mock
Notifier notifier;
@Before
public void before() throws IOException
{
@@ -88,7 +84,6 @@ public class PluginManagerTest
runelite = injector.getInstance(RuneLite.class);
runelite.setGui(clientUi);
runelite.setNotifier(notifier);
// Find plugins we expect to have
pluginClasses = new HashSet<>();