Commit dfaf5299 authored by Harish Fulara's avatar Harish Fulara Committed by Alexandru Băluț

project: Avoid thumbnail generation for unsaved projects

Fixes #2225
parent 0b25d6c1
Pipeline #21998 passed with stages
in 12 minutes and 53 seconds
......@@ -849,6 +849,9 @@ class Project(Loggable, GES.Project):
def create_thumb(self):
"""Creates project thumbnails."""
if not self.uri:
thumb_path = self.get_thumb_path(self.uri, ORIGINAL_THUMB_DIR)
if os.path.exists(thumb_path) and not
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment