diff --git a/src/renderer/components/maps-mangement-components/map-item.component.tsx b/src/renderer/components/maps-mangement-components/map-item.component.tsx index 345d088f..54483049 100644 --- a/src/renderer/components/maps-mangement-components/map-item.component.tsx +++ b/src/renderer/components/maps-mangement-components/map-item.component.tsx @@ -93,7 +93,12 @@ export const MapItem = memo(({hash, title, autor, songAutor, coverUrl, songUrl, return diffLabel; } - const openPreview = () => linkOpener.open(previewUrl, true); + const openPreview = () => { + if(audioPlayer.playing){ + audioPlayer.pause(); + } + linkOpener.open(previewUrl, true); + } const copyBsr = () => navigator.clipboard.writeText(`!bsr ${mapId}`); const toogleMusic = () => { if(songPlaying){