Skip to content

Commit

Permalink
Added a button to go back from network window
Browse files Browse the repository at this point in the history
It is possible to go back from the network window
pressing the esc key, but this is not possible
when the device has only a touchscreen / mouse.

Add a "Cancel" button to go back to the main window.

Signed-off-by: Stefano Babic <[email protected]>
  • Loading branch information
sbabic committed Sep 25, 2018
1 parent a2d22a1 commit 84ab3fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion SWUpdateGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,15 @@ local netwin = NetWindow:new
end)
end
end
}
},
ui.Button:new
{
Id = "cancel-button",
Text = L.CANCEL,
onClick = function(self)
app:switchwindow("network-window", "MainWindow")
end
}
}
}
}
Expand Down

0 comments on commit 84ab3fe

Please sign in to comment.