Skip to content

Commit

Permalink
#6 - Continue disabled until disclaimer checked
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeslattery committed Feb 12, 2020
1 parent 9b36221 commit 381808e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tunic.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,7 @@ function gui() {

$global:installbutton = New-Object system.Windows.Forms.Button
$installbutton.text = "Continue"
$installButton.enabled = $false
$buttonPanel.controls.add($installButton)

$outer.controls.add($buttonPanel)
Expand All @@ -989,6 +990,12 @@ function gui() {
$dualBootRadio.focus()
})

$agreeBox.add_click({
if( $agreeBox.checked ) {
$installButton.enabled = $true
}
})

$cleanButton.add_click({
$global:outer.enabled = $false
try {
Expand Down

0 comments on commit 381808e

Please sign in to comment.