New template from manage templates correctly marked in db

This commit is contained in:
Keith Edmunds 2025-02-23 17:34:23 +00:00
parent 67bf926ed8
commit 589a664971

View File

@ -1413,6 +1413,7 @@ class Window(QMainWindow):
# Create playlist for template and mark is as a template # Create playlist for template and mark is as a template
template = self._create_playlist(session, name, template_id) template = self._create_playlist(session, name, template_id)
template.is_template = True template.is_template = True
session.commit()
# Open it for editing # Open it for editing
self._open_playlist(template, is_template=True) self._open_playlist(template, is_template=True)