mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 10:02:12 +02:00
disable install button with neither component selected
This commit is contained in:
parent
0098fe27df
commit
5730772f6b
1 changed files with 10 additions and 0 deletions
|
@ -1076,6 +1076,16 @@ SectionEnd
|
|||
; Component dependencies
|
||||
Function .onSelChange
|
||||
!insertmacro SectionList MaybeSelectionChanged
|
||||
|
||||
; if neither component is selected, disable the install button
|
||||
${IfNot} ${SectionIsSelected} ${@CLIENT_COMPONENT_NAME@}
|
||||
${AndIfNot} ${SectionIsSelected} ${@SERVER_COMPONENT_NAME@}
|
||||
GetDlgItem $0 $HWNDPARENT 1
|
||||
EnableWindow $0 0
|
||||
${Else}
|
||||
GetDlgItem $0 $HWNDPARENT 1
|
||||
EnableWindow $0 1
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
|
Loading…
Reference in a new issue