Friction: application's stricklers are now read-only in the friction window

This commit is contained in:
Dylan Jeannin committed 2026-07-27 16:04:36 +02:00
1 parent b9ab202e3f
commit b468a1eb70
1 file changed
+4 -5
+4 -5
View File
@@ -91,11 +91,6 @@ class StricklersWindow(PamhyrWindow):
def setup_table(self):
self._table = {}
if self._study.is_editable():
editable_headers = ["name", "comment", "minor", "medium"]
else:
editable_headers = []
for t in ["app", "study"]:
table = self.find(QTableView, f"tableView_{t}")
if t == "study":
@@ -103,6 +98,10 @@ class StricklersWindow(PamhyrWindow):
else:
data = self._config.stricklers
editable_headers = []
if t == "study" and self._study.is_editable():
editable_headers = ["name", "comment", "minor", "medium"]
self._table[t] = TableModel(
table_view=table,
table_headers=self._trad.get_dict("table_headers"),