Add posibility to have separate media buttons, fixes #309

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-07 13:35:29 +02:00
parent 7e91609276
commit cfdaceed22
28 changed files with 739 additions and 381 deletions
+8
View File
@@ -18,6 +18,7 @@ const initialState =
hiddenControls : false,
showNotifications : true,
notificationSounds : true,
buttonControlBar : window.config.buttonControlBar || false,
...window.config.defaultAudio
};
@@ -145,6 +146,13 @@ const settings = (state = initialState, action) =>
return { ...state, permanentTopBar };
}
case 'TOGGLE_BUTTON_CONTROL_BAR':
{
const buttonControlBar = !state.buttonControlBar;
return { ...state, buttonControlBar };
}
case 'TOGGLE_HIDDEN_CONTROLS':
{
const hiddenControls = !state.hiddenControls;