Skip to content

Commit

Permalink
allow to disable the UI in the remote VNC renderable (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariostieriansys authored Nov 13, 2024
1 parent 60724b2 commit 66aa678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ansys/pyensight/core/renderable.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,7 @@ def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self._generate_url()
self._rendertype = "remote"
self._ui = kwargs.get("ui")
self.update()

def _update_2023R2_or_less(self):
Expand All @@ -585,6 +586,7 @@ def update(self):
"""
optional_query = self._get_query_parameters_str()
version = _get_ansysnexus_version(self._session._cei_suffix)
ui = "simple" if not self._ui else self._ui
if int(self._session._cei_suffix) < 242: # pragma: no cover
version = ""
self._update_2023R2_or_less() # pragma: no cover
Expand All @@ -604,7 +606,7 @@ def update(self):
query_args = f', "extra_query_args":"{optional_query[1:]}"' # pragma: no cover

attributes = ' renderer="envnc"'
attributes += ' ui="simple"'
attributes += f" ui={ui}"
attributes += ' active="true"'
attributes += (
" renderer_options='"
Expand Down

0 comments on commit 66aa678

Please sign in to comment.