Merge pull request #774 from deathbeam/rename-notifications
Allow other types of alerts when messages are off
This commit is contained in:
@@ -84,11 +84,6 @@ public class Notifier
|
|||||||
|
|
||||||
public void notify(String message, TrayIcon.MessageType type)
|
public void notify(String message, TrayIcon.MessageType type)
|
||||||
{
|
{
|
||||||
if (!runeLiteConfig.enableTrayNotifications())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
final ClientUI clientUI = this.clientUI.get();
|
final ClientUI clientUI = this.clientUI.get();
|
||||||
|
|
||||||
if (clientUI == null)
|
if (clientUI == null)
|
||||||
@@ -106,7 +101,10 @@ public class Notifier
|
|||||||
clientUI.requestFocus();
|
clientUI.requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendNotification(appName, message, type, null);
|
if (runeLiteConfig.enableTrayNotifications())
|
||||||
|
{
|
||||||
|
sendNotification(appName, message, type, null);
|
||||||
|
}
|
||||||
|
|
||||||
if (runeLiteConfig.enableNotificationSound())
|
if (runeLiteConfig.enableNotificationSound())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user