made SectionGetText work in .onInit too

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3871 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-01-14 15:24:51 +00:00
parent f3b747a35d
commit 057a91aa70

View file

@ -202,6 +202,21 @@ lang_again:
my_SetWindowText(m_bgwnd, caption);
#endif
}
// reload section names
{
section *sec = g_sections;
int x = num_sections;
while (x--)
{
if (sec->name_ptr)
{
GetNSISString(sec->name, sec->name_ptr);
}
sec++;
}
}
}
FORCE_INLINE int NSISCALL ui_doinstall(void)
@ -303,20 +318,6 @@ FORCE_INLINE int NSISCALL ui_doinstall(void)
set_language();
#endif
{
section *sec = g_sections;
int x = num_sections;
while (x--)
{
if (sec->name_ptr)
{
GetNSISString(sec->name, sec->name_ptr);
}
sec++;
}
}
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
#ifdef NSIS_CONFIG_SILENT_SUPPORT