Skip to content

Commit

Permalink
Drop tick() function, unused
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Babic <[email protected]>
  • Loading branch information
sbabic committed Aug 21, 2018
1 parent 2d7b04b commit 82b9a30
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions SWUpdateGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,28 +228,18 @@ local progwin = ui.Window:new
Status = "hide",
HideOnEscape = true,
SizeButton = true,
interval = 0,
show = function(self)
ui.Window.show(self)
self.Window:addInputHandler(ui.MSG_KEYDOWN, self, self.keypressed)
self.Window:addInputHandler(ui.MSG_INTERVAL, self, self.tick)
self.interval = 0
end,
hide = function(self)
ui.Window.hide(self)
self.Window:remInputHandler(ui.MSG_KEYDOWN, self, self.keypressed)
self.Window:remInputHandler(ui.MSG_INTERVAL, self, self.tick)
end,
keypressed = function(self)
self.Window:hide()
w = self:getById("MainWindow")
w:setValue("Status", "show")
end,
tick = function(self)
self.interval = self.interval + 1
if ((self.interval % 50) == 0) then
print(self.interval)
end
end,
Children =
{
Expand Down

0 comments on commit 82b9a30

Please sign in to comment.