File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2299,7 +2299,10 @@ function FlowContent() {
22992299 onStartEmpty = { handleWelcomeStartEmpty }
23002300 onLoadExample = { handleWelcomeLoadExample }
23012301 hideStartEmpty = { isMobileReadOnly }
2302- onOpenChange = { setShowWelcomeDialog }
2302+ onOpenChange = { ( open ) => {
2303+ setShowWelcomeDialog ( open ) ;
2304+ if ( ! open ) markWelcomeComplete ( ) ;
2305+ } }
23032306 />
23042307 </ div >
23052308 </ FlowActionsProvider >
Original file line number Diff line number Diff line change @@ -79,17 +79,7 @@ export function FirstRunDialog({
7979 } ;
8080
8181 const handleOpenChange = ( nextOpen : boolean ) => {
82- if ( nextOpen ) {
83- onOpenChange ?.( true ) ;
84- return ;
85- }
86- if ( actionRef . current === null && ! hideStartEmpty ) {
87- actionRef . current = "empty" ;
88- onStartEmpty ( ) ;
89- onOpenChange ?.( false ) ;
90- return ;
91- }
92- onOpenChange ?.( false ) ;
82+ onOpenChange ?.( nextOpen ) ;
9383 } ;
9484
9585 const dialogDescription = hideStartEmpty
You can’t perform that action at this time.
0 commit comments