Setting to disable notifications, fixes #306

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-06 23:08:51 +02:00
parent c1aa62d22c
commit 457d679382
22 changed files with 62 additions and 14 deletions
+8
View File
@@ -16,6 +16,7 @@ const initialState =
lastN : 4,
permanentTopBar : true,
hiddenControls : false,
showNotifications : true,
notificationSounds : true,
...window.config.defaultAudio
};
@@ -158,6 +159,13 @@ const settings = (state = initialState, action) =>
return { ...state, notificationSounds };
}
case 'TOGGLE_SHOW_NOTIFICATIONS':
{
const showNotifications = !state.showNotifications;
return { ...state, showNotifications };
}
case 'SET_VIDEO_RESOLUTION':
{
const { resolution } = action.payload;