1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Handle saving collapsed states of sub-notebook

This commit is contained in:
Laurent Cozic
2018-05-09 10:49:31 +01:00
parent 567596643c
commit da6fdad2de
8 changed files with 95 additions and 9 deletions

View File

@ -0,0 +1,9 @@
const reduxSharedMiddleware = function(store, next, action) {
const newState = store.getState();
if (action.type == 'FOLDER_SET_COLLAPSED' || action.type == 'FOLDER_TOGGLE') {
Setting.setValue('collapsedFolderIds', newState.collapsedFolderIds);
}
}
module.exports = reduxSharedMiddleware;