mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 18:30:42 +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
|
; Component dependencies
|
||||||
Function .onSelChange
|
Function .onSelChange
|
||||||
!insertmacro SectionList MaybeSelectionChanged
|
!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
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
Loading…
Reference in a new issue