mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-05-08 19:34:51 +02:00
refactor: dismiss download toast on error
This commit is contained in:
@@ -220,8 +220,11 @@ export function useBrowserDownload() {
|
||||
errorMessage = String(error.message);
|
||||
}
|
||||
|
||||
// Ensure the long-running download toast is dismissed, and show a finite error toast
|
||||
dismissToast(`download-${browserStr}-${version}`);
|
||||
showErrorToast(`Failed to download ${browserName} ${version}`, {
|
||||
description: errorMessage,
|
||||
duration: 8000,
|
||||
});
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user