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

View File

@ -364,4 +364,9 @@ class TitleApplet(SimpleApplet):
title = self.args.title
else:
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)