From 0cee5e43068d433e55995ba95994c35c73cb2b4f Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 9 Dec 2022 18:39:33 -0500 Subject: Add Snapshot::SetName api --- python/database.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python') 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)""" -- cgit v1.3.1