diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-26 17:59:28 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-26 17:59:28 +0200 |
commit | 93926d8313a33e892a39191430268af250715cbe (patch) | |
tree | 3b0ea7ddc0d67376e6c39d9e65f6156387b3882f /pages/editor.tsx | |
parent | 2dea4e3a4975e2594695d78995ba45d537bc8936 (diff) |
bug fixes
Diffstat (limited to 'pages/editor.tsx')
-rw-r--r-- | pages/editor.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pages/editor.tsx b/pages/editor.tsx index c513e63..bbda787 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -514,6 +514,7 @@ function TimelineSelection(props: { selectionAreaRef: Ref<ReactNode>; }) { selection.forEach(slide => global.timeline.workingTimeline.find(s => s.value?.id == slide.id).set(none)); global.update.refreshLiveTimeline.value(); + setSetting('default'); global.selection.merge({ placed: false, hidden: true, @@ -849,11 +850,13 @@ function DefaultSettings() { var proj = useHookstate(project).timeline; + var ready = useHookstate(global).ready; + return <> <ProjectSettings /> <h2 className='title posabs h0 t0'>Presentation settings</h2> <div className='scroll posabs h0 b0'> - <div className={'section ' + (global.ready.timeline.value ? '' : 'disabled')}> + <div className={'section ' + (ready.timeline.value ? '' : 'disabled')}> <span className='title'>Controls</span> <div className='sidebyside'> <span className='body'>Allow remote control during presentation</span> @@ -912,7 +915,7 @@ function DefaultSettings() { </Select> </FormControl> </div> - <div className={'section ' + (global.ready.timeline.value ? '' : 'disabled')}> + <div className={'section ' + (ready.timeline.value ? '' : 'disabled')}> <span className='title'>Keybindings</span> <KeybindSelector label='Next slide' value={nextSlideKeybinds} onChange={setNextSlideKeybinds} /> <KeybindSelector |