Invalidate root on GUI update
This commit is contained in:
parent
f6a6357c48
commit
82e0044ba0
@ -539,6 +539,18 @@ local PAGES = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local stuffContainer = List:new{
|
||||||
|
[Orientation:getId()] = Orientation.VERTICAL,
|
||||||
|
[Children:getId()] = {
|
||||||
|
paddedTitle,
|
||||||
|
paddedRequestCount
|
||||||
|
},
|
||||||
|
onClick = function(e, x, y, s)
|
||||||
|
state:setPage("GROUP_DETAIL", group)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
local function updateDisplayState()
|
local function updateDisplayState()
|
||||||
local dataRequestText = paddedRequestCount:findById("data_request")
|
local dataRequestText = paddedRequestCount:findById("data_request")
|
||||||
local dataDividerPad = paddedRequestCount:findById("data_divider")
|
local dataDividerPad = paddedRequestCount:findById("data_divider")
|
||||||
@ -552,6 +564,8 @@ local PAGES = {
|
|||||||
}
|
}
|
||||||
dataAvailableText:setText(tostring(group:getItemCount()))
|
dataAvailableText:setText(tostring(group:getItemCount()))
|
||||||
requestCapProgress:setProgress(pageState.request / group:getItemCount())
|
requestCapProgress:setProgress(pageState.request / group:getItemCount())
|
||||||
|
|
||||||
|
stuffContainer:setDirty(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function bindRequestButton(increment)
|
local function bindRequestButton(increment)
|
||||||
@ -571,18 +585,6 @@ local PAGES = {
|
|||||||
bindRequestButton(1)
|
bindRequestButton(1)
|
||||||
bindRequestButton(5)
|
bindRequestButton(5)
|
||||||
|
|
||||||
local stuffContainer = List:new{
|
|
||||||
[Orientation:getId()] = Orientation.VERTICAL,
|
|
||||||
[Children:getId()] = {
|
|
||||||
paddedTitle,
|
|
||||||
paddedRequestCount
|
|
||||||
},
|
|
||||||
onClick = function(e, x, y, s)
|
|
||||||
state:setPage("GROUP_DETAIL", group)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
return renderDefault(state, stuffContainer)
|
return renderDefault(state, stuffContainer)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user