Update the "lastRunningState" in case update was triggered outside of app (#478)
This commit is contained in:
@@ -52,6 +52,10 @@ export function UpdateChecker({ handleFinishedUpdate }: { handleFinishedUpdate?:
|
|||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (!lastRunningState && status?.isRunning) {
|
||||||
|
lastRunningState = true;
|
||||||
|
}
|
||||||
|
|
||||||
const isUpdateFinished = lastRunningState && progress === 100;
|
const isUpdateFinished = lastRunningState && progress === 100;
|
||||||
if (!isUpdateFinished) {
|
if (!isUpdateFinished) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user