Skip to content
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

Allow creating project from other project (copy) #1680

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Allow creating project from other project (copy) #1680

merged 2 commits into from
Jan 31, 2024

Conversation

vkbo
Copy link
Owner

@vkbo vkbo commented Jan 31, 2024

Summary:

This PR completes the feature added to the new Welcome dialog that allows selecting a different project as the source for creating a new project. The missing piece was the implementation in the ProjectBuilder class, and this PR adds that.

It takes the path to an existing nwProject.nwx file and copies it, and everything under the content folder into the destination folder, opens this project, and sets the values defined in the New Project form on the Welcome dialog. Some other counter meta data is set to 0, like saveCount, autoCount, and editTime, and some other settings are reset to defaults.

Related Issue(s):

Resolves #841

Reviewer's Checklist:

  • The header of all files contain a reference to the repository license
  • The overall test coverage is increased or remains the same as before
  • All tests are passing
  • All flake8 checks are passing and the style guide is followed
  • Documentation (as docstrings) is complete and understandable
  • Only files that have been actively changed are committed

@vkbo vkbo added this to the Release 2.3 Beta 1 milestone Jan 31, 2024
@vkbo vkbo linked an issue Jan 31, 2024 that may be closed by this pull request
@vkbo vkbo merged commit d504c0a into dev Jan 31, 2024
9 checks passed
@vkbo vkbo deleted the copy_project branch January 31, 2024 23:24
@vkbo vkbo mentioned this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for templates
1 participant