[Update] Plugins: Send all logics to the plugins when it's registered.
This commit is contained in:
1 parent
5681038c22
commit
b0b68233aa
5 files changed
+11
-49
No files matched your search
+2
-2
@@ -4,8 +4,8 @@ import { useSubtitles } from "../_logics/useSubtitles";
|
||||
import { secToDayTime } from "../_subtitles_utils"
|
||||
import { useEffect } from "react";
|
||||
export const SubtitlesController = () => {
|
||||
const logic_configs = useStoreContext();
|
||||
const { sendTextToOverlay } = logic_configs.useSendTextToOverlay();
|
||||
const { useSendTextToOverlay } = useStoreContext();
|
||||
const { sendTextToOverlay } = useSendTextToOverlay();
|
||||
|
||||
const {
|
||||
currentIsSubtitlePlaying,
|
||||
|
||||
+2
-17
@@ -1,23 +1,8 @@
|
||||
import { useStore, useStoreContext } from "../../store/store.js";
|
||||
|
||||
// import { useSendTextToOverlay } from "@logics_configs";
|
||||
// import {
|
||||
// useStore_SubtitleFileName,
|
||||
// useStore_IsSubtitlePlaying,
|
||||
// useStore_SubtitlePlaybackMode,
|
||||
// useStore_SubtitleAbsoluteTargetTime,
|
||||
// useStore_IsCuesScheduled,
|
||||
// useStore_CountdownAdjustment,
|
||||
// useStore_EffectiveCountdown,
|
||||
// useStore_SubtitleCues,
|
||||
|
||||
// useStore_SubtitleTimers,
|
||||
// useStore_SubtitleCountdownTimerId,
|
||||
// } from "../../store/store.js";
|
||||
|
||||
export const useSubtitles = () => {
|
||||
const logic_configs = useStoreContext();
|
||||
const { sendTextToOverlay } = logic_configs.useSendTextToOverlay();
|
||||
const { useSendTextToOverlay } = useStoreContext();
|
||||
const { sendTextToOverlay } = useSendTextToOverlay();
|
||||
|
||||
const { currentSubtitleFileName, updateSubtitleFileName } = useStore("useStore_SubtitleFileName");
|
||||
const { currentIsSubtitlePlaying, updateIsSubtitlePlaying } = useStore("useStore_IsSubtitlePlaying");
|
||||
|
||||
Reference in new issue
Block a user