Skip to content

Commit

Permalink
Sync manuscript statistics too with word count
Browse files Browse the repository at this point in the history
  • Loading branch information
zkovari committed Sep 25, 2024
1 parent b1ad2b8 commit cfb08b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/python/plotlyst/service/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def _sync_scenes(self, novel: Novel, new_novel: Novel):
old_scene.title = new_scene.title
if old_scene.manuscript and new_scene.manuscript:
old_scene.manuscript.content = new_scene.manuscript.content
old_scene.manuscript.statistics = new_scene.manuscript.statistics
old_scene.manuscript.loaded = True
elif old_scene.manuscript and new_scene.manuscript is None:
old_scene.manuscript.content = ''
Expand Down

0 comments on commit cfb08b2

Please sign in to comment.