Skip to content

Commit

Permalink
fix(#653): use isArray and update gitignore (#670)
Browse files Browse the repository at this point in the history
* fix(#653): use isArray and update gitignore

* forgor

* try no 2
  • Loading branch information
WilloIzCitron authored Apr 4, 2022
1 parent f275817 commit a5b1356
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ theme.def
Backup/*
results.txt
*.csv

# Remove the editor settings directory
.vscode
14 changes: 7 additions & 7 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,10 @@ Func Main(ByRef $aResults, ByRef $aOutput)
For $iLoop = 1 To $aLangs[0] Step 1
$aLangs[$iLoop] &= " - " & IniRead(@LocalAppDataDir & "\WhyNotWin11\langs\" & $aLangs[$iLoop], "MetaData", "Language", "Unknown")
Next
_ArrayDelete($aLangs, 0)
_ArrayDelete($aLangs, 0)
_ArrayDelete($aLangs, 55) ;==> Remove the "Unknown" entry
EndIf

Local $aThemes = _FileListToArray(@ScriptDir & "\", "*.def", $FLTA_FILES)
If Not @error Then
For $iLoop = 1 To $aThemes[0] Step 1
Expand Down Expand Up @@ -809,17 +810,16 @@ Func Main(ByRef $aResults, ByRef $aOutput)
GUICtrlCreateGroup("", 30, 180, 400, 328)
GUICtrlCreateLabel(" " & _Translate($aMUI[1], "Settings") & " ", 40, 180, 380, 20)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

GUICtrlCreateLabel(_Translate($aMUI[1], "Language") & ":", 40, 200, 380, 20)
Local $hLanguage = GUICtrlCreateCombo("", 40, 220, 380, 20, $CBS_DROPDOWNLIST+$WS_VSCROLL)
If Not _ArrayToString($aLangs) = -1 Then GUICtrlSetData(-1, _ArrayToString($aLangs), $aMUI[1])
GUICtrlCreateLabel(_Translate($aMUI[1], "Translation by") & ":", 40, 250, 100, 20)
Local $hLanguage = GUICtrlCreateCombo($alangs, 40, 220, 380, 20, $CBS_DROPDOWNLIST+$WS_VSCROLL)
GUICtrlSetData(-1, _ArrayToString($aLangs), $aMUI[1])
If IsArray($aLangs) Then GUICtrlCreateLabel(_Translate($aMUI[1], "Translation by") & ":", 40, 250, 100, 20)
GUICtrlCreateLabel(_GetTranslationCredit($aMUI[1]), 140, 250, 280, 40, $SS_RIGHT)

GUICtrlCreateLabel(_Translate($aMUI[1], "Theme") & ":", 40, 290, 380, 20)
Local $hTheme = GUICtrlCreateCombo("", 40, 310, 380, 20, $CBS_DROPDOWNLIST+$WS_VSCROLL)
#forceref $hTheme
If Not _ArrayToString($aThemes) = -1 Then GUICtrlSetData(-1, _ArrayToString($aThemes))
If IsArray($aThemes) Then GUICtrlSetData(-1, _ArrayToString($aThemes))
GUICtrlCreateLabel(_Translate($aMUI[1], "Theme by") & ":", 40, 340, 100, 20)
; GUICtrlCreateLabel(_GetThemeCredit($sTheme), 140, 340, 280, 40, $SS_RIGHT)

Expand Down

2 comments on commit a5b1356

@Splashmou
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ALPS

@Splashmou
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SPSS

Please sign in to comment.