From 05a289dd65d76acda6d488a4b913d34c42f11a88 Mon Sep 17 00:00:00 2001 From: karim Date: Sat, 6 Jun 2026 14:25:26 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20language=20reload:=20hasattr('mode')=20?= =?UTF-8?q?=E2=86=92=20hasattr('=5Fmode'),=20val.mode=20=E2=86=92=20val.?= =?UTF-8?q?=5Fmode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BaseBridge stores mode as self._mode, not self.mode — so the reload loop never found any bridges and language switching did nothing. --- rhino/toolbar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhino/toolbar.py b/rhino/toolbar.py index c5826d6..8d8beb8 100644 --- a/rhino/toolbar.py +++ b/rhino/toolbar.py @@ -2261,9 +2261,9 @@ def _reload_all_panel_langs(): for key, val in list(sc.sticky.items()): if (key.endswith("_bridge") or key.endswith("_bridge_ref")) \ and hasattr(val, "_wv") and val._wv is not None \ - and hasattr(val, "mode"): + and hasattr(val, "_mode"): try: - panel_base.load_inline(val._wv, val.mode) + panel_base.load_inline(val._wv, val._mode) except Exception as ex: print("[TOOLBAR] reload_lang ({}): {}".format(key, ex)) except Exception as ex: