mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-24 04:47:57 +02:00
fix: lyrics export issue when furigana is enabled (#2175)
* fix: lyrics export issue when furigana is enabled
This commit is contained in:
@@ -293,10 +293,10 @@ export const Lyrics = ({ fadeOutNoLyricsMessage = true, settingsKey = 'default'
|
||||
}, [isLoadingLyrics, hasNoLyrics, fadeOutNoLyricsMessage]);
|
||||
|
||||
const handleExportLyrics = useCallback(() => {
|
||||
if (displayLyrics) {
|
||||
openLyricsExportModal({ lyrics: displayLyrics, offsetMs: currentOffsetMs, synced });
|
||||
if (lyrics && !isLyricsDisabled) {
|
||||
openLyricsExportModal({ lyrics, offsetMs: currentOffsetMs, synced });
|
||||
}
|
||||
}, [currentOffsetMs, displayLyrics, synced]);
|
||||
}, [currentOffsetMs, isLyricsDisabled, lyrics, synced]);
|
||||
|
||||
const handleOpenSettings = () => {
|
||||
openLyricsSettingsModal(settingsKey);
|
||||
|
||||
Reference in New Issue
Block a user