mirror of
https://github.com/ente-io/ente.git
synced 2025-07-16 19:52:45 +00:00
Start with a idle state
Not sure why it was true - there is a possibility that this was intentional, but I can't think why. The reason for changing it is to fix our "isForced" logic (otherwise the non-file-related sync doesn't run on app start), without introducing _another_ flag to track if the sync was initiated from a gallery useEffect or by the preUploadSync.
This commit is contained in:
parent
2bdc010849
commit
03da960c33
@ -255,7 +255,7 @@ export default function Gallery() {
|
|||||||
accept: ".zip",
|
accept: ".zip",
|
||||||
});
|
});
|
||||||
|
|
||||||
const syncInProgress = useRef(true);
|
const syncInProgress = useRef(false);
|
||||||
const syncInterval = useRef<NodeJS.Timeout>();
|
const syncInterval = useRef<NodeJS.Timeout>();
|
||||||
const resync = useRef<{ force: boolean; silent: boolean }>();
|
const resync = useRef<{ force: boolean; silent: boolean }>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user