Skip to content

Commit 42e979a

Browse files
authored
GUI: fix hiding input/output fields from import dialogs on Windows (#6309)
The dialog for importing included input and output fields, even though they are explicitly blacklisted in the code. It was working on linux, but on windows the name included .py extension so it never passed the test.
1 parent 26a1723 commit 42e979a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/grass/script/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ def _process_params(self) -> None:
347347

348348
hidden: bool = bool(
349349
self.task.blackList["enabled"]
350-
and self.task.name in self.task.blackList["items"]
350+
and self.task.get_name() in self.task.blackList["items"]
351351
and p.get("name")
352-
in self.task.blackList["items"][self.task.name].get("params", [])
352+
in self.task.blackList["items"][self.task.get_name()].get("params", [])
353353
)
354354

355355
self.task.params.append(

0 commit comments

Comments
 (0)