Qt: remove macOS launch-at-startup option when compiled with > macOS 10.11

This commit is contained in:
Jonas Schnelli
2019-01-18 21:47:01 -10:00
parent 63144335be
commit 516437a1b7
3 changed files with 13 additions and 1 deletions

View File

@@ -683,7 +683,7 @@ bool SetStartOnSystemStartup(bool fAutoStart)
}
#elif defined(Q_OS_MAC)
#elif defined(Q_OS_MAC) && defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 101100
// based on: https://github.com/Mozketo/LaunchAtLoginController/blob/master/LaunchAtLoginController.m
LSSharedFileListItemRef findStartupItemInList(LSSharedFileListRef list, CFURLRef findUrl);