Notification sounds optional

main
Bob Mottram 2021-03-23 09:43:42 +00:00
parent 5d17c2d9ce
commit 1dda323ea7
1 changed files with 4 additions and 2 deletions

View File

@ -1223,14 +1223,16 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
_desktopNotification(notificationType, _desktopNotification(notificationType,
"Epicyon", "Epicyon",
"New DM " + yourActor + '/dm') "New DM " + yourActor + '/dm')
_playNotificationSound(dmSoundFilename, player) if notificationSounds:
_playNotificationSound(dmSoundFilename, player)
if notifyJson.get('repliesNotify'): if notifyJson.get('repliesNotify'):
newRepliesExist = True newRepliesExist = True
if notifyJson.get('repliesNotifyChanged'): if notifyJson.get('repliesNotifyChanged'):
_desktopNotification(notificationType, _desktopNotification(notificationType,
"Epicyon", "Epicyon",
"New reply " + yourActor + '/replies') "New reply " + yourActor + '/replies')
_playNotificationSound(replySoundFilename, player) if notificationSounds:
_playNotificationSound(replySoundFilename, player)
if boxJson: if boxJson:
timelineFirstId = _getFirstItemId(boxJson) timelineFirstId = _getFirstItemId(boxJson)