Skip to content

Commit

Permalink
GUI: SingleFieldEditorPanelBase: Fix missing editorSuggestions prop…
Browse files Browse the repository at this point in the history
…erty getter implementation

Fix-up of 67b0bad
Review action #37 (comment)
  • Loading branch information
JulienCochuyt committed Sep 1, 2024
1 parent 9097d36 commit 254b901
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addon/globalPlugins/webAccess/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# See the file COPYING.txt at the root of this distribution for more details.


__version__ = "2024.08.29"
__version__ = "2024.08.30"
__authors__ = (
"Julien Cochuyt <[email protected]>",
"André-Abush Clause <[email protected]>",
Expand Down Expand Up @@ -1079,6 +1079,7 @@ class SingleFieldEditorPanelBase(SingleFieldEditorMixin, TreeContextualPanel):
@dataclass
class CategoryParams(TreeContextualPanel.CategoryParams):
editorChoices: Mapping[Any, str] = None
editorSuggestions: Sequence[str] = None
fieldDisplayName: str = None
fieldName: str = None
onEditor_change: Callable[[Self], None] = None
Expand All @@ -1104,6 +1105,10 @@ def __init__(self, *args, editorType: EditorType = None, **kwargs):
def editorChoices(self) -> str:
return self.categoryParams.editorChoices

@property
def editorSuggestions(self) -> str:
return self.categoryParams.editorSuggestions

@property
def fieldDisplayName(self) -> str:
return self.categoryParams.fieldDisplayName
Expand Down

0 comments on commit 254b901

Please sign in to comment.