From 057a91aa707ffb1004af6305257255657b92300b Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 14 Jan 2005 15:24:51 +0000 Subject: [PATCH] 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 --- Source/exehead/Ui.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 64c888c4..822d3a53 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -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