Allow other types of alerts when messages are off

- Allow sending beep and requesting window focus when having notification
messages disabled

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-03-02 10:07:06 +01:00
parent ff4066cd74
commit be211ebbee

View File

@@ -84,11 +84,6 @@ public class Notifier
public void notify(String message, TrayIcon.MessageType type)
{
if (!runeLiteConfig.enableTrayNotifications())
{
return;
}
final ClientUI clientUI = this.clientUI.get();
if (clientUI == null)
@@ -106,7 +101,10 @@ public class Notifier
clientUI.requestFocus();
}
sendNotification(appName, message, type, null);
if (runeLiteConfig.enableTrayNotifications())
{
sendNotification(appName, message, type, null);
}
if (runeLiteConfig.enableNotificationSound())
{