File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
newIDE/app/src/ProjectCreation Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import optionalRequire from '../Utils/OptionalRequire';
2929import PreferencesContext from '../MainFrame/Preferences/PreferencesContext' ;
3030import Checkbox from '../UI/Checkbox' ;
3131import { MarkdownText } from '../UI/MarkdownText' ;
32+ import InAppTutorialContext from '../InAppTutorial/InAppTutorialContext' ;
3233
3334const electron = optionalRequire ( 'electron' ) ;
3435const remote = optionalRequire ( '@electron/remote' ) ;
@@ -91,6 +92,9 @@ const NewProjectSetupDialog = ({
9192 const { values, setNewProjectsDefaultStorageProviderName } = React . useContext (
9293 PreferencesContext
9394 ) ;
95+ const { currentlyRunningInAppTutorial } = React . useContext (
96+ InAppTutorialContext
97+ ) ;
9498 const { openSubscriptionDialog } = React . useContext (
9599 SubscriptionSuggestionContext
96100 ) ;
@@ -108,7 +112,8 @@ const NewProjectSetupDialog = ({
108112 false
109113 ) ;
110114 const [ allowPlayersToLogIn , setAllowPlayersToLogIn ] = React . useState < boolean > (
111- true
115+ // Enable player login by default for new games, unless a tutorial is running.
116+ ! ! currentlyRunningInAppTutorial ? false : true
112117 ) ;
113118 const newProjectsDefaultFolder = app
114119 ? findEmptyPathInWorkspaceFolder ( app , values . newProjectsDefaultFolder || '' )
You can’t perform that action at this time.
0 commit comments