mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Qt: remove macOS launch-at-startup option when compiled with > macOS 10.11
This commit is contained in:
parent
63144335be
commit
516437a1b7
3 changed files with 13 additions and 1 deletions
|
@ -262,6 +262,12 @@ Graphical User Interface (GUI)
|
|||
balance shown if the wallet was created using the `createwallet` RPC
|
||||
and the `disable_private_keys` parameter was set to true.
|
||||
|
||||
- The launch-on-startup option is no longer available on macOS if
|
||||
compiled with macosx min version greater than 10.11 (use
|
||||
CXXFLAGS="-mmacosx-version-min=10.11"
|
||||
CFLAGS="-mmacosx-version-min=10.11" for setting the deployment
|
||||
sdk version)
|
||||
|
||||
Low-level changes
|
||||
=================
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -74,6 +74,12 @@ OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) :
|
|||
#ifdef Q_OS_MAC
|
||||
/* remove Window tab on Mac */
|
||||
ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWindow));
|
||||
#if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED > 101100
|
||||
/* hide launch at startup option if compiled against macOS > 10.11 (removed API) */
|
||||
ui->bitcoinAtStartup->setVisible(false);
|
||||
ui->verticalLayout_Main->removeWidget(ui->bitcoinAtStartup);
|
||||
ui->verticalLayout_Main->removeItem(ui->horizontalSpacer_0_Main);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* remove Wallet tab in case of -disablewallet */
|
||||
|
|
Loading…
Add table
Reference in a new issue