From 496b86e50dfd5a182ac5f5bcc4d6388ab9faa730 Mon Sep 17 00:00:00 2001 From: Nuno Date: Fri, 9 Jul 2021 20:43:21 +0200 Subject: [PATCH] Update welcome --- code/ryzom/client/src/init_main_loop.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/init_main_loop.cpp b/code/ryzom/client/src/init_main_loop.cpp index 2b391114c..7373827d0 100644 --- a/code/ryzom/client/src/init_main_loop.cpp +++ b/code/ryzom/client/src/init_main_loop.cpp @@ -1578,6 +1578,13 @@ void setLoadingContinent (CContinent *continent) void initWelcomeWindow() { + CSessionBrowserImpl &sb = CSessionBrowserImpl::getInstance(); + if (sb.CurrentJoinMode!=CFarTP::LaunchEditor && NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:WELCOME")->getValueBool()) + { + std::vector v; + CWidgetManager::getInstance()->runProcedure ("welcome_opened", NULL, v); + } + /* CInterfaceManager *pIM = CInterfaceManager::getInstance(); CInterfaceGroup* welcomeWnd = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:welcome_info")); if(welcomeWnd) @@ -1585,7 +1592,7 @@ void initWelcomeWindow() bool welcomeDbProp = NLGUI::CDBManager::getInstance()->getDbProp("UI:SAVE:WELCOME")->getValueBool(); CSessionBrowserImpl &sb = CSessionBrowserImpl::getInstance(); welcomeWnd->setActive((sb.CurrentJoinMode!=CFarTP::LaunchEditor) && welcomeDbProp); - } + }*/ } // ***************************************************************************