mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'audio2' into 'master'
HOTFIX: Fix `PreferenceSubscreenAudioExit()` being unable to handle nullish player notification settings See merge request BondageProjects/Bondage-College!5470
This commit is contained in:
commit
c4acdfd338
2 changed files with 2 additions and 2 deletions
BondageClub/Screens/Character/Preference
|
@ -81,7 +81,7 @@ function PreferenceSubscreenAudioExit() {
|
|||
// If audio has been disabled for notifications, disable each individual notification audio setting
|
||||
if (!Player.AudioSettings.Notifications) {
|
||||
for (const setting in Player.NotificationSettings) {
|
||||
let audio = Player.NotificationSettings[setting].Audio;
|
||||
let audio = Player.NotificationSettings[setting]?.Audio;
|
||||
if (typeof audio === 'number' && audio > 0) Player.NotificationSettings[setting].Audio = NotificationAudioType.NONE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1015,7 +1015,7 @@ var PreferenceNotificationSettingsDefault = {
|
|||
Test: { Audio: NotificationAudioType.NONE, AlertType: NotificationAlertType.TITLEPREFIX },
|
||||
|
||||
// Those are deprecated
|
||||
Audio: false,
|
||||
Audio: undefined,
|
||||
Chat: undefined,
|
||||
ChatActions: undefined,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue