mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-10 03:02:38 +08:00
Make small optimization on evil volume
This commit is contained in:
parent
7f60d5d3db
commit
520b754c99
1 changed files with 2 additions and 2 deletions
|
|
@ -23,9 +23,9 @@ local function emit_volume_info()
|
|||
-- when a media file starts playing.
|
||||
if volume_int ~= volume_old or muted_int ~= muted_old then
|
||||
awesome.emit_signal("evil::volume", volume_int, muted)
|
||||
volume_old = volume_int
|
||||
muted_old = muted_int
|
||||
end
|
||||
volume_old = volume_int
|
||||
muted_old = muted_int
|
||||
-- TODO maybe collect garbage here?
|
||||
end)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue