mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 13:17:41 +02:00
GH-1665 attempt at workaround for MultiMC not starting on macOS Sierra
This tries to detect the issue and instructs the user to fix it by moving the application to /Applications or ~/Applications. In addition, several other previously poorly handled fatal errors now show an error dialog.
This commit is contained in:
@ -50,6 +50,8 @@ public:
|
||||
enum Status
|
||||
{
|
||||
StartingUp,
|
||||
UnwritableLog,
|
||||
FailedShowError,
|
||||
Failed,
|
||||
Succeeded,
|
||||
Initialized
|
||||
@ -172,7 +174,7 @@ private slots:
|
||||
void setupWizardFinished(int status);
|
||||
|
||||
private:
|
||||
void initLogger();
|
||||
bool initLogger();
|
||||
void shutdownLogger();
|
||||
void initIcons();
|
||||
void initThemes();
|
||||
@ -186,6 +188,9 @@ private:
|
||||
void shutdownAnalytics();
|
||||
void performMainStartupAction();
|
||||
|
||||
// sets the fatal error message and m_status to Failed.
|
||||
void showFatalErrorMessage(const QString & title, const QString & content);
|
||||
|
||||
private:
|
||||
QDateTime startTime;
|
||||
|
||||
|
Reference in New Issue
Block a user