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:
parent
7adbbd3f7c
commit
d99f8461ef
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue