Skip to content

Commit

Permalink
fix delete_scene not being saved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo committed Oct 8, 2024
1 parent 4f7a21a commit d428896
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vspreview/shortcuts/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ def __getstate__(self) -> dict[str, Any]:
"seek_to_prev_scene_start": self.seek_to_prev_scene_start_lineedit.text(),
"seek_to_next_scene_start": self.seek_to_next_scene_start_lineedit.text(),
"paste_frame_scening_model": self.paste_frame_scening_model_lineedit.text(),
"delete_scene": self.delete_scene_lineedit.text(),
}
| {f"switch_list_{i}": so.text() for i, so in enumerate(self.switch_list_lineedit)}
)
Expand All @@ -730,6 +731,7 @@ def __setstate__(self, state: dict[str, Any]) -> None:
try_load(state, "seek_to_prev_scene_start", str, self.seek_to_prev_scene_start_lineedit.setText)
try_load(state, "seek_to_next_scene_start", str, self.seek_to_next_scene_start_lineedit.setText)
try_load(state, "paste_frame_scening_model", str, self.paste_frame_scening_model_lineedit.setText)
try_load(state, "delete_scene", str, self.delete_scene_lineedit.setText)

for i, le in enumerate(self.switch_list_lineedit):
try_load(state, f"switch_list_{i}", str, le.setText)
Expand Down

0 comments on commit d428896

Please sign in to comment.