Skip to content

Commit

Permalink
Clear library selection after action
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda committed Jun 13, 2024
1 parent 403f657 commit 6344c21
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/screens/Library.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,10 @@ export function Library() {
{(handleClose, setHideMenu) => (
<MangaActionMenuItems
selectedMangas={selectedMangas}
onClose={(selectionModeState) => {
onClose={() => {
handleClose();
setIsSelectModeActive(selectionModeState);
if (!selectionModeState) {
clearSelection();
}
setIsSelectModeActive(false);
clearSelection();
}}
setHideMenu={setHideMenu}
/>
Expand Down

0 comments on commit 6344c21

Please sign in to comment.