diff options
Diffstat (limited to 'python/database.py')
| -rw-r--r-- | python/database.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/database.py b/python/database.py index 226079ab..c19ab565 100644 --- a/python/database.py +++ b/python/database.py @@ -140,9 +140,14 @@ class Snapshot: @property def name(self) -> str: - """Get the displayed snapshot name (read-only)""" + """Get the displayed snapshot name""" return core.BNGetSnapshotName(self.handle) + @name.setter + def name(self, value: str) -> None: + """Set the displayed snapshot name""" + core.BNSetSnapshotName(self.handle, value) + @property def is_auto_save(self) -> bool: """If the snapshot was the result of an auto-save (read-only)""" |
