@@ -42,9 +42,8 @@ final class RowEditingCoordinator: ObservableObject {
4242 // MARK: - Row Operations
4343
4444 func addNewRow( ) {
45- guard ! parent. safeModeLevel . blocksAllWrites ,
45+ guard parent. canEditActiveResult ,
4646 let ( tab, tabIndex) = parent. tabManager. selectedTabAndIndex,
47- tab. tableContext. isEditable,
4847 tab. tableContext. tableName != nil else { return }
4948
5049 let tabId = tab. id
@@ -69,9 +68,8 @@ final class RowEditingCoordinator: ObservableObject {
6968 }
7069
7170 func deleteSelectedRows( indices: Set < Int > ) {
72- guard ! parent. safeModeLevel . blocksAllWrites ,
71+ guard parent. canEditActiveResult ,
7372 let ( tab, tabIndex) = parent. tabManager. selectedTabAndIndex,
74- tab. tableContext. isEditable,
7573 !indices. isEmpty else { return }
7674
7775 let tabId = tab. id
@@ -113,9 +111,8 @@ final class RowEditingCoordinator: ObservableObject {
113111 }
114112
115113 func duplicateSelectedRow( index: Int ) {
116- guard ! parent. safeModeLevel . blocksAllWrites ,
114+ guard parent. canEditActiveResult ,
117115 let ( tab, tabIndex) = parent. tabManager. selectedTabAndIndex,
118- tab. tableContext. isEditable,
119116 tab. tableContext. tableName != nil else { return }
120117
121118 let tabId = tab. id
@@ -337,7 +334,7 @@ final class RowEditingCoordinator: ObservableObject {
337334 }
338335
339336 func pasteRows( ) {
340- guard ! parent. safeModeLevel . blocksAllWrites ,
337+ guard parent. canEditActiveResult ,
341338 let ( tab, tabIndex) = parent. tabManager. selectedTabAndIndex,
342339 tab. tabType == . table else { return }
343340
0 commit comments