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: