Mercurial > libervia-web
diff src/browser/sat_browser/panels.py @ 478:992b900ab876
browser side: rename and refactor constant UI_PARAMS to CACHED_PARAMS, from a dict of dict to a list of 2-tuple
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 12 Jun 2014 22:37:22 +0200 |
parents | 97c72fe4a5f2 |
children | 437eefa53a01 |
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py Thu Jun 12 22:32:33 2014 +0200 +++ b/src/browser/sat_browser/panels.py Thu Jun 12 22:37:22 2014 +0200 @@ -79,7 +79,7 @@ def refresh(self): """Enable or disable this panel. Contained widgets are created when necessary.""" - enable = self.host.getUIParam('unibox') + enable = self.host.getCachedParam(C.COMPOSITION_KEY, C.ENABLE_UNIBOX_PARAM) == 'true' self.setVisible(enable) if enable and not self.unibox: self.button = Button('<img src="media/icons/tango/actions/32/format-text-italic.png" class="richTextIcon"/>')