Remove splash screen after init

This commit is contained in:
Weixuan XIAO 2019-11-16 13:58:32 +01:00 committed by Nicolas Fella
parent be9260fcc2
commit 9f38b3f1a7
2 changed files with 15 additions and 1 deletions

View file

@ -70,7 +70,19 @@ MacOSIndicatorHelper::MacOSIndicatorHelper()
m_splashScreen->show();
}
MacOSIndicatorHelper::~MacOSIndicatorHelper() {}
MacOSIndicatorHelper::~MacOSIndicatorHelper()
{
if (m_splashScreen) {
delete m_splashScreen;
}
}
void MacOSIndicatorHelper::postInit()
{
if (m_splashScreen) {
m_splashScreen->finish(nullptr);
}
}
void MacOSIndicatorHelper::iconPathHook()
{

View file

@ -54,6 +54,8 @@ public:
MacOSIndicatorHelper();
~MacOSIndicatorHelper();
void postInit();
void iconPathHook();
int daemonHook(QProcess &kdeconnectd);