MCPcopy Create free account
hub / github.com/error311/FileRise / savePaneState

Function savePaneState

public/js/fileListView.js:1885–1895  ·  view source on GitHub ↗
(pane, patch)

Source from the content-addressed store, hash-verified

1883}
1884
1885function savePaneState(pane, patch) {
1886 const state = getPaneState(pane);
1887 Object.assign(state, patch || {});
1888 if (patch && Object.prototype.hasOwnProperty.call(patch, 'currentFolder')) {
1889 const sourceId = state.sourceId || getPaneSourceId(pane);
1890 persistPaneFolder(pane, state.currentFolder, sourceId);
1891 }
1892 if (patch && Object.prototype.hasOwnProperty.call(patch, 'sourceId')) {
1893 persistPaneSource(pane, state.sourceId || '');
1894 }
1895}
1896
1897function syncPaneStateFromGlobals(pane) {
1898 savePaneState(pane, {

Callers 15

syncPaneStateFromGlobalsFunction · 0.85
setPaneFileListPagingFunction · 0.85
setActivePaneFunction · 0.85
fileListView.jsFile · 0.85
clearFolderSelectionsFunction · 0.85
setCurrentFolderContextFunction · 0.85
refreshCurrentFolderCapsFunction · 0.85
navigateToSearchResultFunction · 0.85
loadFileListFunction · 0.85
renderFileTableFunction · 0.85

Calls 4

getPaneStateFunction · 0.85
getPaneSourceIdFunction · 0.85
persistPaneFolderFunction · 0.85
persistPaneSourceFunction · 0.85

Tested by

no test coverage detected