sync: check local file availability before opening (#262)

This commit is contained in:
Huang Xin
2025-01-28 21:02:19 +01:00
committed by GitHub
parent 171a7ee759
commit c0d715bf77
6 changed files with 84 additions and 51 deletions
+6 -1
View File
@@ -49,7 +49,12 @@ interface ReaderStore {
setViewSettings: (key: string, viewSettings: ViewSettings) => void;
getViewSettings: (key: string) => ViewSettings | null;
initViewState: (envConfig: EnvConfigType, id: string, key: string, isPrimary?: boolean) => void;
initViewState: (
envConfig: EnvConfigType,
id: string,
key: string,
isPrimary?: boolean,
) => Promise<void>;
clearViewState: (key: string) => void;
getViewState: (key: string) => ViewState | null;
}