mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Refactor crashpad initialization
Crashpad handler was initialized quite late since we were waiting for settings. However the settings in crashpad are persistent itself, hence we can start it at the earliest possible time and change the upload settings independently later. The only prerequisite is to have QCoreApplication constructed in order for the application name to be available. ref T652
This commit is contained in:
committed by
Klaus Basan
parent
99bcee87aa
commit
a7509669f9
@@ -9,6 +9,8 @@
|
||||
#include "blackgui/enableforframelesswindow.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/crashhandler.h"
|
||||
#include "blackmisc/appstarttime.h"
|
||||
#include "swiftguistd.h"
|
||||
#include "swiftguistdapplication.h"
|
||||
|
||||
@@ -25,6 +27,8 @@ int main(int argc, char *argv[])
|
||||
CGuiApplication::highDpiScreenSupport(CGuiApplication::parseScaleFactor(argc, argv));
|
||||
QApplication qa(argc, argv);
|
||||
Q_UNUSED(qa); // application init needed
|
||||
|
||||
CCrashHandler::instance()->init();
|
||||
CSwiftGuiStdApplication a; // application with contexts
|
||||
a.setSignalStartupAutomatically(false); // application will signal startup on its own
|
||||
a.splashScreen(CIcons::swift256());
|
||||
|
||||
Reference in New Issue
Block a user