Disable saving middle split position for now

This commit is contained in:
Laurent Nguyen 2024-07-23 11:05:04 +02:00
parent bf1474e101
commit f65e7ab1d6

View File

@ -25,7 +25,6 @@ import {
DocumentsTabStateData, DocumentsTabStateData,
readDocumentsTabState, readDocumentsTabState,
readSubComponentState, readSubComponentState,
saveDocumentsTabState,
saveSubComponentState, saveSubComponentState,
} from "Explorer/Tabs/DocumentsTabV2/DocumentsTabStateUtil"; } from "Explorer/Tabs/DocumentsTabV2/DocumentsTabStateUtil";
import { getPlatformTheme } from "Explorer/Theme/ThemeUtil"; import { getPlatformTheme } from "Explorer/Theme/ThemeUtil";
@ -1827,7 +1826,7 @@ export const DocumentsTabComponent: React.FunctionComponent<IDocumentsTabCompone
<Split <Split
onDragEnd={(preSize: number) => { onDragEnd={(preSize: number) => {
tabStateData.leftPaneWidthPercent = Math.min(100, Math.max(0, Math.round(100 * preSize) / 100)); tabStateData.leftPaneWidthPercent = Math.min(100, Math.max(0, Math.round(100 * preSize) / 100));
saveDocumentsTabState(tabStateData); // saveDocumentsTabState(tabStateData); // Disable saving split position for now
setTabStateData({ ...tabStateData }); setTabStateData({ ...tabStateData });
}} }}
> >