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
1 changed files with 0 additions and 4 deletions

View File

@ -241,10 +241,6 @@ local function set_escaped_text(self)
if self.size_info then update_size(self) end if self.size_info then update_size(self) end
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) local function cleanup(self, _ --[[reason]], keep_visible)
-- It is not a legacy notification -- It is not a legacy notification
if not self.box then return end if not self.box then return end