|
|
@ -762,6 +762,8 @@ bool SetStartOnSystemStartup(bool fAutoStart) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(Q_OS_MAC) |
|
|
|
#elif defined(Q_OS_MAC) |
|
|
|
|
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations" |
|
|
|
// based on: https://github.com/Mozketo/LaunchAtLoginController/blob/master/LaunchAtLoginController.m
|
|
|
|
// based on: https://github.com/Mozketo/LaunchAtLoginController/blob/master/LaunchAtLoginController.m
|
|
|
|
|
|
|
|
|
|
|
|
#include <CoreFoundation/CoreFoundation.h> |
|
|
|
#include <CoreFoundation/CoreFoundation.h> |
|
|
@ -824,6 +826,7 @@ bool SetStartOnSystemStartup(bool fAutoStart) |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#pragma GCC diagnostic pop |
|
|
|
#else |
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
bool GetStartOnSystemStartup() { return false; } |
|
|
|
bool GetStartOnSystemStartup() { return false; } |
|
|
|