Skip to content

Commit

Permalink
Do not autosave empty QC reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Frechdachs authored Jan 9, 2023
1 parent 2e0d627 commit bc28f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpvqc/manager/_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ def on_write_auto_save(self, _: AppWindow, __: Table, m: MpvWidget) -> None:
Auto saves the current state
"""

if m.player.has_video():
content = _exporter.get_file_content(self._vid, self._comments or [])
if m.player.has_video() and self._comments:
content = _exporter.get_file_content(self._vid, self._comments)
_exporter.write_auto_save(video_path=self._vid, file_content=content)

def on_import(
Expand Down

0 comments on commit bc28f46

Please sign in to comment.