Fix minor mistake in client topmenu

This commit is contained in:
Eduardo Bart 2013-01-18 22:24:40 -02:00
parent 4f6c987d77
commit 36e95b2f48
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ local function addButton(id, description, icon, callback, panel, toggle, front)
end end
button:setId(id) button:setId(id)
button:setTooltip(description) button:setTooltip(description)
button:setIcon(icon, 3) button:setIcon(resolvepath(icon, 3))
button.onMouseRelease = function(widget, mousePos, mouseButton) button.onMouseRelease = function(widget, mousePos, mouseButton)
if widget:containsPoint(mousePos) and mouseButton ~= MouseMiddleButton then if widget:containsPoint(mousePos) and mouseButton ~= MouseMiddleButton then
callback() callback()