mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Friction: application's stricklers are now read-only in the friction window
This commit is contained in:
1 parent
b9ab202e3f
commit
b468a1eb70
1 file changed
+4
-5
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user