mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 17:59:21 +00:00
fix(src/app/App): close correctly splashscreen
This commit is contained in:
parent
076ae9a55a
commit
36e43fe391
1 changed files with 4 additions and 1 deletions
|
|
@ -115,7 +115,10 @@ inline QQuickWindow *createSubWindow (App *app, const char *path) {
|
|||
|
||||
inline void activeSplashScreen (App *app) {
|
||||
QQuickWindow *splash_screen = createSubWindow(app, QML_VIEW_SPLASH_SCREEN);
|
||||
QObject::connect(CoreManager::getInstance(), &CoreManager::linphoneCoreCreated, splash_screen, &QQuickWindow::close);
|
||||
QObject::connect(CoreManager::getInstance(), &CoreManager::linphoneCoreCreated, splash_screen, [splash_screen] {
|
||||
splash_screen->close();
|
||||
splash_screen->deleteLater();
|
||||
});
|
||||
}
|
||||
|
||||
void App::initContentApp () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue