Geotiff: Disable add and delete for readonly mode.

ci-test
Pierre-Antoine 2025-11-21 11:19:43 +01:00
parent 4e4ceb5074
commit 9116009b0b
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ class GeoTIFFListWindow(PamhyrWindow):
if self._study.is_editable():
self.find(QAction, "action_add").triggered.connect(self.add)
self.find(QAction, "action_delete").triggered.connect(self.delete)
else:
self.find(QAction, "action_add").setEnabled(False)
self.find(QAction, "action_delete").setEnabled(False)
self.find(QAction, "action_edit").triggered.connect(self.edit)