Skip to content

Commit

Permalink
#634, NoUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Nov 8, 2021
1 parent af7fa5c commit e2ded25
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,12 @@ Func Main(ByRef $aResults, ByRef $aOutput)

#Region Sidebar
; Top Most Interaction for Update Text
Local $hUpdate = GUICtrlCreateLabel("", 0, 560, 90, 60, $SS_CENTER + $SS_CENTERIMAGE)
GUICtrlSetBkColor(-1, $aColors[$iSidebar])
GUICtrlSetCursor(-1, 0)
Local $hUpdate = Default
If Not RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\WhyNotWin11", "NoUpdate") Then
$hUpdate = GUICtrlCreateLabel("", 0, 560, 90, 60, $SS_CENTER + $SS_CENTERIMAGE)
GUICtrlSetBkColor(-1, $aColors[$iSidebar])
GUICtrlSetCursor(-1, 0)
EndIf

#cs Maybe Readd Later
; Top Most Interaction for Banner
Expand Down Expand Up @@ -368,14 +371,16 @@ Func Main(ByRef $aResults, ByRef $aOutput)
; Allow Dragging of Window
GUICtrlCreateLabel("", 0, 0, 800, 30, -1, $GUI_WS_EX_PARENTDRAG)

GUICtrlCreateLabel("", 0, 0, 100, 570)
GUICtrlCreateLabel("", 0, 0, 100, 600)
GUICtrlSetBkColor(-1, $aColors[$iSidebar])

GUICtrlCreateLabel(_Translate($aMUI[1], "Check for Updates"), 0, 563, 100, 60, $SS_CENTER)
GUICtrlSetFont(-1, $aFonts[$FontSmall] * $DPI_RATIO, $FW_NORMAL, $GUI_FONTUNDER)
GUICtrlSetBkColor(-1, $aColors[$iSidebar])
GUICtrlSetTip(-1, "Update")
GUICtrlSetCursor(-1, 0)
If Not RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Robert Maehl Software\WhyNotWin11", "NoUpdate") Then
GUICtrlCreateLabel(_Translate($aMUI[1], "Check for Updates"), 0, 563, 100, 60, $SS_CENTER)
GUICtrlSetFont(-1, $aFonts[$FontSmall] * $DPI_RATIO, $FW_NORMAL, $GUI_FONTUNDER)
GUICtrlSetBkColor(-1, $aColors[$iSidebar])
GUICtrlSetTip(-1, "Update")
GUICtrlSetCursor(-1, 0)
EndIf

_GDIPlus_Startup()
If @Compiled Then
Expand Down

0 comments on commit e2ded25

Please sign in to comment.