forked from M-Labs/artiq
1
0
Fork 0

simple: refactor TitleApplet data_changed signature

This commit is contained in:
Simon Renblad 2023-07-12 11:35:18 +08:00 committed by Sébastien Bourdeauducq
parent fe0f6d8a2c
commit 5695e9f77e
1 changed files with 6 additions and 1 deletions

View File

@ -364,4 +364,9 @@ class TitleApplet(SimpleApplet):
title = self.args.title title = self.args.title
else: else:
title = None title = None
self.main_widget.data_changed(data, mod_buffer, title) persist = dict()
value = dict()
metadata = dict()
for k, d in data.items():
persist[k], value[k], metadata[k] = d
self.main_widget.data_changed(value, metadata, persist, mod_buffer, title)