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(() => {
|
||||
if (!lastRunningState && status?.isRunning) {
|
||||
lastRunningState = true;
|
||||
}
|
||||
|
||||
const isUpdateFinished = lastRunningState && progress === 100;
|
||||
if (!isUpdateFinished) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user