Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_widgets.py @ 1995:b5ef9b2b995e 0.7-dev
quick_frontend (QuickWidget): keep on_new_widget argument when recreating a widget
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 11 Jul 2016 19:22:40 +0200 |
parents | 633b5c21aefd |
children | 19b9d3f8a6c7 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_widgets.py Sun Jul 10 12:26:42 2016 +0200 +++ b/frontends/src/quick_frontend/quick_widgets.py Mon Jul 11 19:22:40 2016 +0200 @@ -209,6 +209,8 @@ else: raise ValueError("force_hash option can't be used with on_existing_widget=RECREATE") + new_kwargs['on_new_widget'] = on_new_widget + # XXX: keep up-to-date if new special kwargs are added (i.e.: delete these keys here) new_kwargs['on_existing_widget'] = C.WIDGET_RAISE hash_idx = 1