Skip to content

Commit

Permalink
fixed: Fixed an issue where the rz command dialog could not be closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Nov 11, 2024
1 parent 942579d commit a2f0e85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/src/hooks/useZsentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ export const useSentry = (lastSendTime?: Ref<Date>, t?: any): IUseSentry => {
},
onNegativeClick: () => {
if (zmodeSession.value) {
debug('Cancel Abort');
zmodeSession.value.abort();
try {
zmodeSession.value.abort();
} catch (e) {
return true;
}
}
return true;
}
};
});
Expand Down

0 comments on commit a2f0e85

Please sign in to comment.