Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
fix signal callback arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
RMTT committed Sep 29, 2020
1 parent d50585d commit 64f359a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions theme/fly/module/battery_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ local function get_devices()
return res
end

local function device_added(path)
parse_device(path, false)
local function device_added(conn, sender, path, interface_name, signal_name, user_data)
parse_device(user_data.value[1], false)
end

local function device_removed(path)
awesome.emit_signal(sig.battery_manager.remove_device, path)
local function device_removed(conn, sender, path, interface_name, signal_name, user_data)
awesome.emit_signal(sig.battery_manager.remove_device, user_data.value[1])
end

function battery_manager:init(config)
Expand Down

0 comments on commit 64f359a

Please sign in to comment.