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]);
|
}, [isLoadingLyrics, hasNoLyrics, fadeOutNoLyricsMessage]);
|
||||||
|
|
||||||
const handleExportLyrics = useCallback(() => {
|
const handleExportLyrics = useCallback(() => {
|
||||||
if (displayLyrics) {
|
if (lyrics && !isLyricsDisabled) {
|
||||||
openLyricsExportModal({ lyrics: displayLyrics, offsetMs: currentOffsetMs, synced });
|
openLyricsExportModal({ lyrics, offsetMs: currentOffsetMs, synced });
|
||||||
}
|
}
|
||||||
}, [currentOffsetMs, displayLyrics, synced]);
|
}, [currentOffsetMs, isLyricsDisabled, lyrics, synced]);
|
||||||
|
|
||||||
const handleOpenSettings = () => {
|
const handleOpenSettings = () => {
|
||||||
openLyricsSettingsModal(settingsKey);
|
openLyricsSettingsModal(settingsKey);
|
||||||
|
|||||||
Reference in New Issue
Block a user