简化暂停/播放按钮的点击事件处理逻辑

This commit is contained in:
北枳 2025-08-14 17:10:23 +08:00
parent 84a5e9ab58
commit 4e21aea1a0

View File

@ -239,7 +239,7 @@ const WorkFlow = React.memo(function WorkFlow() {
icon={isPauseWorkFlow ? Play : Pause}
size='lg'
tooltip={isPauseWorkFlow ? "Play" : "Pause"}
onClick={useCallback(() => setIsPauseWorkFlow(!isPauseWorkFlow), [isPauseWorkFlow])}
onClick={() => setIsPauseWorkFlow(!isPauseWorkFlow)}
/>
{ mode !== 'automatic' && (
<GlassIconButton