Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Dec 14, 2018
1 parent deb3669 commit 496dff5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Projects/SelLangForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ function AskForLanguage: Boolean;
{ If there's multiple languages, select the previous language, if available }
if (shUsePreviousLanguage in SetupHeader.Options) and
(LangForm.LangCombo.Items.Count > 1) then begin
{ Note: if UsePreviousLanguage is set to "yes" then the compiler does not
allow AppId to include constants so we can safely use it here without
having to call ExpandConstant first. }
{ do not localize or change the following string }
PrevLang := GetPreviousData(ExpandConst(SetupHeader.AppId), 'Inno Setup: Language', '');
PrevLang := GetPreviousData(SetupHeader.AppId, 'Inno Setup: Language', '');

if PrevLang <> '' then begin
for I := 0 to Entries[seLanguage].Count-1 do begin
Expand Down

0 comments on commit 496dff5

Please sign in to comment.