Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added restart button #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions autorun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,9 @@ function ui_button.donepressed(self)
if requiresrestart then do_restart() return end
save_last()
end
function ui_button.restartpressed(self)
do_restart()
end
function ui_button.downloadpressed(self)
for i,but in ipairs(mainwindow.checkbox.list) do
if but.selected then
Expand Down Expand Up @@ -1161,6 +1164,7 @@ end
donebutton = ui_button.new(55,339,29,10,ui_button.donepressed,"DONE")
mainwindow:add(donebutton)
mainwindow:add(ui_button.new(134,339,40,10,ui_button.sidepressed,"CANCEL"))
mainwindow:add(ui_button.new(134,339,40,10,ui_button.restartpressed,"RESTART"))
--mainwindow:add(ui_button.new(152,339,29,10,ui_button.selectnone,"NONE"))
local nonebutton = ui_button.new(62,81,8,8,ui_button.selectnone,"")
nonebutton.drawbox = true
Expand Down