Compare commits

...

2 Commits

Author SHA1 Message Date
Gabriel Tofvesson
fe7ed25d74 Add request buttons to graphics tree 2024-10-12 04:18:13 +02:00
Gabriel Tofvesson
bb5f246687 Add default return values for Padding params 2024-10-12 04:17:57 +02:00
2 changed files with 7 additions and 9 deletions

View File

@ -49,19 +49,19 @@ function Padding:setDirty(fullInvalidate)
end
function Padding:getPaddingLeft()
return self.left
return self.left or 0
end
function Padding:getPaddingRight()
return self.right
return self.right or 0
end
function Padding:getPaddingTop()
return self.top
return self.top or 0
end
function Padding:getPaddingBottom()
return self.bottom
return self.bottom or 0
end
local function compareSet(value, default, didChange)

View File

@ -571,13 +571,11 @@ local PAGES = {
bindRequestButton(1)
bindRequestButton(5)
local stuffContainer = Container:new{
local stuffContainer = List:new{
[Children:getId()] = {
paddedTitle
paddedTitle,
paddedRequestCount
},
width = state.width,
height = state.height,
parent = state.monitor,
onClick = function(e, x, y, s)
state:setPage("GROUP_DETAIL", group)
return true