|
@ -28,6 +28,9 @@ export interface ConfigPage { |
|
|
genreListPage?: SortColumn; |
|
|
genreListPage?: SortColumn; |
|
|
playlistListPage?: SortColumn; |
|
|
playlistListPage?: SortColumn; |
|
|
}; |
|
|
}; |
|
|
|
|
|
player: { |
|
|
|
|
|
systemNotifications: boolean; |
|
|
|
|
|
}; |
|
|
lookAndFeel: { |
|
|
lookAndFeel: { |
|
|
font: string; |
|
|
font: string; |
|
|
listView: { |
|
|
listView: { |
|
@ -106,6 +109,9 @@ const initialState: ConfigPage = { |
|
|
filters: parsedSettings.playbackFilters, |
|
|
filters: parsedSettings.playbackFilters, |
|
|
audioDeviceId: parsedSettings.audioDeviceId || undefined, |
|
|
audioDeviceId: parsedSettings.audioDeviceId || undefined, |
|
|
}, |
|
|
}, |
|
|
|
|
|
player: { |
|
|
|
|
|
systemNotifications: parsedSettings.systemNotifications, |
|
|
|
|
|
}, |
|
|
sort: { |
|
|
sort: { |
|
|
albumListPage: undefined, |
|
|
albumListPage: undefined, |
|
|
albumPage: undefined, |
|
|
albumPage: undefined, |
|
@ -223,6 +229,13 @@ const configSlice = createSlice({ |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setPlayer: (state, action: PayloadAction<any>) => { |
|
|
|
|
|
state.player = { |
|
|
|
|
|
...state.player, |
|
|
|
|
|
...action.payload, |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
setWindow: (state, action: PayloadAction<any>) => { |
|
|
setWindow: (state, action: PayloadAction<any>) => { |
|
|
state.window = { ...state.window, ...action.payload }; |
|
|
state.window = { ...state.window, ...action.payload }; |
|
|
}, |
|
|
}, |
|
@ -354,5 +367,6 @@ export const { |
|
|
setOBS, |
|
|
setOBS, |
|
|
setSidebar, |
|
|
setSidebar, |
|
|
setWindow, |
|
|
setWindow, |
|
|
|
|
|
setPlayer, |
|
|
} = configSlice.actions; |
|
|
} = configSlice.actions; |
|
|
export default configSlice.reducer; |
|
|
export default configSlice.reducer; |
|
|