Fix snapshot selection using row key instead of get_cell
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -52,9 +52,7 @@ class SnapshotsScreen(Screen):
|
|||||||
try:
|
try:
|
||||||
table = self.query_one("#snap-table", DataTable)
|
table = self.query_one("#snap-table", DataTable)
|
||||||
if table.cursor_row is not None and table.row_count > 0:
|
if table.cursor_row is not None and table.row_count > 0:
|
||||||
row_key = table.coordinate_to_cell_key((table.cursor_row, 0)).row_key.value
|
return str(table.coordinate_to_cell_key((table.cursor_row, 0)).row_key.value)
|
||||||
# The snapshot name is in the first (only) column
|
|
||||||
return str(table.get_cell(row_key, "Snapshot"))
|
|
||||||
return None
|
return None
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user