mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Make import button an undo command.
This commit is contained in:
1 parent
30702cb118
commit
4d95e42d20
4 files changed
+68
-27
No files matched your search
@@ -185,6 +185,20 @@ class GeometryReachTableModel(PamhyrTableModel):
|
||||
self.endMoveRows()
|
||||
self.layoutChanged.emit()
|
||||
|
||||
def import_geometry(self, row, filename):
|
||||
self.layoutAboutToBeChanged.emit()
|
||||
|
||||
self._undo.push(
|
||||
ImportCommand(
|
||||
self._data, row,
|
||||
filename
|
||||
)
|
||||
)
|
||||
|
||||
self.layoutAboutToBeChanged.emit()
|
||||
self.layoutChanged.emit()
|
||||
|
||||
|
||||
def duplicate(self, rows, profiles):
|
||||
self.layoutAboutToBeChanged.emit()
|
||||
|
||||
|
||||
Reference in new issue
Block a user