summaryrefslogtreecommitdiff
path: root/python/database.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-12-09 18:39:33 -0500
committerGlenn Smith <glenn@vector35.com>2023-01-03 15:01:32 -0500
commit0cee5e43068d433e55995ba95994c35c73cb2b4f (patch)
treed8d6252e487386a9b2d66b798bcc8e5489e2d1ac /python/database.py
parentffafa54703d239414e616d88633736ced71b63a5 (diff)
Add Snapshot::SetName api
Diffstat (limited to 'python/database.py')
-rw-r--r--python/database.py7
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)"""