Skip to content

Commit

Permalink
Update Settings Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Dec 20, 2023
1 parent a6491af commit 03afa32
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions MSEdgeRedirect_Wrapper.au3
Original file line number Diff line number Diff line change
Expand Up @@ -768,28 +768,27 @@ Func RunSetup($bUpdate = False, $bSilent = False, $iPage = 0, $hSetupFile = @Scr
$iPage -= 1

Case $hMsg = $hNext
If @Compiled And Not $bResumed Then
Select

Case _IsChecked($hEurope)
ShellExecute(@ScriptFullPath, "/ContinueEurope", @ScriptDir, "RunAs")
Exit

Case _IsChecked($hActive)
ShellExecute(@ScriptFullPath, "/ContinueActive", @ScriptDir, "RunAs")
Exit

Case _IsChecked($hOthers)
ShellExecute("https://github.com/rcmaehl/MSEdgeRedirect/wiki/Alternative-Apps-Comparison-Chart")
Exit

EndSelect
EndIf
Switch $iPage + 1
Case $hMode
GUICtrlSetState($hBack, $GUI_ENABLE)
Case $hSettings
If $bUpdate Then
If @Compiled And Not $bResumed Then
Select

Case _IsChecked($hEurope)
ShellExecute(@ScriptFullPath, "/ContinueEurope", @ScriptDir, "RunAs")
Exit

Case _IsChecked($hActive)
ShellExecute(@ScriptFullPath, "/ContinueActive", @ScriptDir, "RunAs")
Exit

Case _IsChecked($hOthers)
ShellExecute("https://github.com/rcmaehl/MSEdgeRedirect/wiki/Alternative-Apps-Comparison-Chart")
Exit

EndSelect
ElseIf $bUpdate Then
GUICtrlSetData($hNext, "Update")
Else
GUICtrlSetData($hNext, "Install")
Expand Down

0 comments on commit 03afa32

Please sign in to comment.