Browse Source

!3 sleep 3s before open main page

chenliangyu 1 year ago
parent
commit
e62c3f624b
2 changed files with 8 additions and 1 deletions
  1. 7 0
      Module/mod_chromium/mod_chromium.cpp
  2. 1 1
      addin/cmake/DependencyConanFiles.cmake

+ 7 - 0
Module/mod_chromium/mod_chromium.cpp

@@ -747,6 +747,10 @@ namespace Chromium {
 				auto srcPids = getUosBrowserPIDs(CModTools::get_mutable_instance().getUosBrowser());
 #endif // RVC_OS_LINUX
 				startWithCfg();//it will open install page
+
+				std::this_thread::sleep_for(std::chrono::seconds(3));
+				LogWarn(Severity_Low, Error_Debug, LOG_SLV_CHROMIUM_URLOPEN, "正在启动业务界面");
+
 #if defined(RVC_OS_LINUX)
 				for (auto it : srcPids)
 				{
@@ -858,6 +862,9 @@ namespace Chromium {
 						openMainPage();
 						CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::breakdown);
 
+						std::this_thread::sleep_for(std::chrono::seconds(3));
+						LogWarn(Severity_Low, Error_Debug, LOG_SLV_CHROMIUM_URLOPEN, "正在启动业务界面");
+
 #if defined(RVC_OS_LINUX)
 						for (auto it : srcPids)
 						{

+ 1 - 1
addin/cmake/DependencyConanFiles.cmake

@@ -69,7 +69,7 @@ if(MSVC)
 			#mod_chromium
 			CEFControl/1.0@LR04.02_ThirdParty/testing
 			#mod_chromium
-			cefclient_mutable/2.0.36@LR04.02_ThirdParty/testing
+			cefclient_mutable/2.0.37@LR04.02_ThirdParty/testing
 			#libaudiorender
 			speex/1.2.1@LR04.02_ThirdParty/testing
 			#libvideoframework