-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When duplicating a project, ask for the new name and if link with game should be kept #7253
Conversation
AlexandreSi
commented
Dec 19, 2024
… new game as well
@@ -314,7 +314,7 @@ const CreateSection = ({ | |||
const isCurrentProjectOpened = | |||
!!project && | |||
!!currentFileMetadata && | |||
fileMetadata.gameId === currentFileMetadata.gameId; | |||
fileMetadata.fileIdentifier === currentFileMetadata.fileIdentifier; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
let originalProjectUuid = null; | ||
if (newSaveAsOptions && newSaveAsOptions.generateNewProjectUuid) { | ||
originalProjectUuid = currentProject.getProjectUuid(); | ||
currentProject.resetProjectUuid(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just double checking this will not affect the initial project? I assume not as we're not saving that project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my tests everything went fine, but I'll check again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm it's okay
newIDE/app/src/ProjectsStorage/CloudStorageProvider/CloudProjectWriter.js
Outdated
Show resolved
Hide resolved
@@ -243,7 +251,7 @@ export const generateOnSaveProjectAs = ( | |||
} | |||
options.onStartSaving(); | |||
|
|||
const gameId = saveAsLocation.gameId || project.getProjectUuid(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change? was this not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw it used only once, above in generateOnChooseSaveProjectAsLocation
. I felt like it was not onChooseSaveProjectAsLocation role to set the gameId. So I removed it.