Merge pull request #105 from utix/volumewidget/avoidMultiNotification
Destroy notification before creating a new one
This commit is contained in:
commit
bc3fe1e31f
|
@ -67,6 +67,7 @@ local function worker(args)
|
||||||
local function show_volume(val)
|
local function show_volume(val)
|
||||||
spawn.easy_async(GET_VOLUME_CMD,
|
spawn.easy_async(GET_VOLUME_CMD,
|
||||||
function(stdout, _, _, _)
|
function(stdout, _, _, _)
|
||||||
|
naughty.destroy(notification)
|
||||||
notification = naughty.notify{
|
notification = naughty.notify{
|
||||||
text = get_notification_text(stdout),
|
text = get_notification_text(stdout),
|
||||||
icon=path_to_icons .. val .. ".svg",
|
icon=path_to_icons .. val .. ".svg",
|
||||||
|
|
Loading…
Reference in New Issue