mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 18:24:24 +00:00
USETUP: Do not ask to select language if just one language is available
Patch by Carlo Bramini. Thanks a lot! CORE-10322 #resolve svn path=/trunk/; revision=69600
This commit is contained in:
parent
3bb5106159
commit
5e93c3bb50
|
@ -653,4 +653,17 @@ RestoreGenericListState(
|
||||||
List->CurrentEntry = List->BackupEntry;
|
List->CurrentEntry = List->BackupEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
GenericListHasSingleEntry(
|
||||||
|
PGENERIC_LIST List)
|
||||||
|
{
|
||||||
|
if (!IsListEmpty(&List->ListHead) && List->ListHead.Flink == List->ListHead.Blink)
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
|
/* if both list head pointers (which normally point to the first and last list member, respectively)
|
||||||
|
point to the same entry then it means that there's just a single thing in there, otherwise... false! */
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -54,10 +54,6 @@ DrawGenericList(
|
||||||
SHORT Right,
|
SHORT Right,
|
||||||
SHORT Bottom);
|
SHORT Bottom);
|
||||||
|
|
||||||
VOID
|
|
||||||
DrawScrollBarGenericLis(
|
|
||||||
PGENERIC_LIST List);
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
ScrollDownGenericList(
|
ScrollDownGenericList(
|
||||||
PGENERIC_LIST List);
|
PGENERIC_LIST List);
|
||||||
|
@ -121,4 +117,8 @@ GenericListKeyPress(
|
||||||
PGENERIC_LIST List,
|
PGENERIC_LIST List,
|
||||||
CHAR AsciChar);
|
CHAR AsciChar);
|
||||||
|
|
||||||
|
BOOL
|
||||||
|
GenericListHasSingleEntry(
|
||||||
|
PGENERIC_LIST List);
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -633,6 +633,12 @@ LanguagePage(PINPUT_RECORD Ir)
|
||||||
/* Load the font */
|
/* Load the font */
|
||||||
SelectedLanguageId = DefaultLanguage;
|
SelectedLanguageId = DefaultLanguage;
|
||||||
SetConsoleCodePage();
|
SetConsoleCodePage();
|
||||||
|
UpdateKBLayout();
|
||||||
|
|
||||||
|
/* If there's just a single language in the list skip
|
||||||
|
* the language selection process altogether! */
|
||||||
|
if (GenericListHasSingleEntry(LanguageList))
|
||||||
|
return INTRO_PAGE;
|
||||||
|
|
||||||
DrawGenericList(LanguageList,
|
DrawGenericList(LanguageList,
|
||||||
2,
|
2,
|
||||||
|
|
Loading…
Reference in a new issue