@@ -3555,19 +3555,25 @@ void InterSpec::showWelcomeDialog( bool force )
35553555 return ;
35563556 }
35573557
3558- /*
3559- For Android, showing this useInfoWindow at startup causes some exceptions
3560- in the JavaScript whenever the loading indicator is shown. I'm pretty
3561- confused by it.
3562- I tried setting a new loading indicator in deleteWelcomeCountDialog(), but it didnt work
3563- */
3564-
3565- std::function<void (bool )> dontShowAgainCallback = [this ](bool value){
3566- InterSpecUser::setPreferenceValue<bool >( m_user, " ShowSplashScreen" , value, this );
3567- };
3568- m_useInfoWindow = new UseInfoWindow ( dontShowAgainCallback , this );
3558+ WServer::instance ()->post ( wApp->sessionId (), std::bind ( [this ](){
3559+ /*
3560+ For Android, showing this useInfoWindow at startup causes some exceptions
3561+ in the JavaScript whenever the loading indicator is shown. I'm pretty
3562+ confused by it.
3563+ I tried setting a new loading indicator in deleteWelcomeCountDialog(), but it didnt work
3564+
3565+ Havent checked if creating this window via "posting" helps
3566+ */
3567+ if ( m_useInfoWindow )
3568+ return ;
3569+
3570+ std::function<void (bool )> dontShowAgainCallback = [this ](bool value){
3571+ InterSpecUser::setPreferenceValue<bool >( m_user, " ShowSplashScreen" , value, this );
3572+ };
3573+ m_useInfoWindow = new UseInfoWindow ( dontShowAgainCallback , this );
35693574
3570- m_useInfoWindow->finished ().connect ( this , &InterSpec::deleteWelcomeCountDialog );
3575+ m_useInfoWindow->finished ().connect ( this , &InterSpec::deleteWelcomeCountDialog );
3576+ } ) );
35713577}// void showWelcomeDialog()
35723578
35733579
0 commit comments