Skip to content

Commit

Permalink
#634, NoInfoBox
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Nov 14, 2021
1 parent c5cb349 commit 7443acd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)
;Local $hBasic = GUICtrlCreateTabItem("Basic Checks")
;GUICtrlSetColor(-1, $aColors[$iBackground])

Local $bInfoBox = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\WhyNotWin11", "NoInfoBox")
Local $hCheck[11][3]
Local $hLabel[11] = ["Architecture", "Boot Method", "CPU Compatibility", "CPU Core Count", "CPU Frequency", "DirectX + WDDM2", "Disk Partition Type", "RAM Installed", "Secure Boot", "Storage Available", "TPM Version"]
Local $aInfo = _GetDescriptions($aMUI[1])
Expand All @@ -519,7 +520,7 @@ Func Main(ByRef $aResults, ByRef $aOutput)
GUICtrlSetStyle(-1, $SS_CENTER + $SS_CENTERIMAGE + $SS_SUNKEN)
EndSwitch
GUICtrlSetFont(-1, $aFonts[$FontMedium] * $DPI_RATIO, $FW_SEMIBOLD)
If Not RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\WhyNotWin11", "NoInfoBox") Then
If Not $bInfoBox Then
GUICtrlCreateIcon("", -1, 763, 118 + $iRow * 40, 24, 40)
If @Compiled Then
_SetBkSelfIcon(-1, $aColors[$iText], $aColors[$iBackground], @ScriptFullPath, 207, 24, 24)
Expand Down Expand Up @@ -767,8 +768,8 @@ Func Main(ByRef $aResults, ByRef $aOutput)
GUICtrlCreateLabel(_Translate($aMUI[1], "Theme by") & ":", 40, 340, 100, 20)
; GUICtrlCreateLabel(_GetThemeCredit($sTheme), 140, 340, 280, 40, $SS_RIGHT)

$hMUI = GUICtrlCreateCheckbox(_Translate($aMUI[1], "Remember Last Language Used"), 40, 380, 380, 20, $BS_RIGHTBUTTON)
$hUOL = GUICtrlCreateCheckbox(_Translate($aMUI[1], "Check for Updates on App Launch"), 40, 400, 380, 20, $BS_RIGHTBUTTON)
Local $hMUI = GUICtrlCreateCheckbox(_Translate($aMUI[1], "Remember Last Language Used"), 40, 380, 380, 20, $BS_RIGHTBUTTON)
Local $hUOL = GUICtrlCreateCheckbox(_Translate($aMUI[1], "Check for Updates on App Launch"), 40, 400, 380, 20, $BS_RIGHTBUTTON)

;GUICtrlCreateCheckbox(_Translate($aMUI[1], "Save Settings in Registry, Not Disk"), 40, 480, 380, 20, $BS_RIGHTBUTTON)

Expand Down

0 comments on commit 7443acd

Please sign in to comment.