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 *.osp project files to be imported as a Clip #3285

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented Mar 9, 2020

  • Allow *.osp project files to be imported as a Clip.
  • Better handle unknown "media_type"'s.
  • Trigger "has unsaved changes" when clearing history from a Project, so the user can immediately save the *.osp file without history.

A few misc things, but all related to my work on allowing *.osp files to be imported as a Clip, without deadlocking the system, or crashing anything. 😉

Related PR for libopenshot: OpenShot/libopenshot#459

…nown "media_type"'s. Trigger "has unsaved changes" when clearing history from a Project, so the user can immediately save the *.osp file without history.
@ferdnyc
Copy link
Contributor

ferdnyc commented Mar 11, 2020

  • Trigger "has unsaved changes" when clearing history from a Project, so the user can immediately save the *.osp file without history.

👍 I added the same thing to the Export dialog at some point, too, so users would be reminded to commit their updated export_path to the project file.

(Now I have to go back and fix things so it only sets the flag if the export path is different from the previous value. Because it's a bit annoying having to save every time you export, if you use the same output directory each time.)

Comment on lines +154 to +156
else:
# If neither set, just assume video
file_data["media_type"] = "video"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exact same code is copypasted into files_treeview.py as well, it probably makes sense to keep them in sync. (Better would be to eliminate the redundancy, but short of that...)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, pushed a commit.

@jonoomph jonoomph merged commit 9fe1dd6 into develop Mar 11, 2020
@ferdnyc ferdnyc deleted the timeline-import-improvements branch April 29, 2020 08:37
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.

2 participants