Skip to content

Commit

Permalink
fix(UpdateChecker): 在获取更新并重启之前隐藏对话框
Browse files Browse the repository at this point in the history
  • Loading branch information
thoulee21 committed Dec 13, 2024
1 parent 494eef4 commit d9e9390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/UpdateChecker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const UpdateChecker = () => {
}, [availableUpdate, currentlyRunning, isDev, t]);

const fetchUpdateAndRestart = async () => {
setDialogVisible(false);
try {
await Updates.fetchUpdateAsync();
RNRestart.Restart();
Expand Down

0 comments on commit d9e9390

Please sign in to comment.