Compare commits

...

2 Commits

Author SHA1 Message Date
Gabriel Tofvesson
233d3119e5 Fix button offset 2024-10-12 01:05:08 +02:00
Gabriel Tofvesson
c01b258e51 Return proper value from click handler 2024-10-12 01:04:38 +02:00

View File

@ -406,7 +406,7 @@ local PAGES = {
}, },
Padding:new{ Padding:new{
x = 1, x = 1,
y = state.height - 3, y = state.height - 2,
top = 1, top = 1,
left = 1, left = 1,
right = 1, right = 1,
@ -418,6 +418,7 @@ local PAGES = {
}, },
onClick = function(e, x, y, s) onClick = function(e, x, y, s)
state:setPage("REQUEST") state:setPage("REQUEST")
return true
end end
} }
}, },
@ -426,6 +427,7 @@ local PAGES = {
parent = state.monitor, parent = state.monitor,
onClick = function(e, x, y, s) onClick = function(e, x, y, s)
state:setPage("MAIN") state:setPage("MAIN")
return true
end end
} }
@ -446,6 +448,7 @@ local PAGES = {
parent = state.monitor, parent = state.monitor,
onClick = function(e, x, y, s) onClick = function(e, x, y, s)
state:setPage("GROUP_DETAIL") state:setPage("GROUP_DETAIL")
return true
end end
} }