naughty.legacy: Do not update the text if the notification has no widget

If the notification has been created without a legacy widget, it would
try to update some widgets that have never been created.
This commit is contained in:
Emmanuel Lepage Vallee 2019-04-05 14:58:07 -04:00
parent 7adbbd3f7c
commit d99f8461ef

View file

@ -241,10 +241,6 @@ local function set_escaped_text(self)
if self.size_info then update_size(self) end
end
naughty.connect_signal("property::text" ,set_escaped_text)
naughty.connect_signal("property::title",set_escaped_text)
local function cleanup(self, _ --[[reason]], keep_visible)
-- It is not a legacy notification
if not self.box then return end