Skip to content

Commit

Permalink
fix library refresh notification not closing automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
xgi committed May 9, 2024
1 parent 55ceca5 commit 712bf4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/renderer/features/library/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ export async function reloadSeriesList(
message: `Error while reloading series "${seriesList[0].title}"`,
color: 'red',
icon: React.createElement(IconX, { size: 16 }),
loading: false,
autoClose: true,
});
} else if (failedToUpdate.length > 0) {
updateNotification({
Expand Down Expand Up @@ -325,6 +327,7 @@ export async function reloadSeriesList(
),
color: 'yellow',
icon: React.createElement(IconAlertTriangle, { size: 16 }),
loading: false,
autoClose: false,
});
} else {
Expand All @@ -334,6 +337,8 @@ export async function reloadSeriesList(
message: `Reloaded ${cur} series`,
color: 'teal',
icon: React.createElement(IconCheck, { size: 16 }),
loading: false,
autoClose: true,
});
}

Expand Down

0 comments on commit 712bf4f

Please sign in to comment.