@@ -41,7 +41,8 @@ void OptionsModel::Init()
4141 // These are Qt-only settings:
4242 nDisplayUnit = settings.value (" nDisplayUnit" , BitcoinUnits::BTC).toInt ();
4343 fMinimizeToTray = settings.value (" fMinimizeToTray" , false ).toBool ();
44- bDisplayAddresses = settings.value (" bDisplayAddresses" , false ).toBool ();
44+ fDisableTrxNotifications = settings.value (" fDisableTrxNotifications" , false ).toBool ();
45+ bDisplayAddresses = settings.value (" bDisplayAddresses" , false ).toBool ();
4546 fMinimizeOnClose = settings.value (" fMinimizeOnClose" , false ).toBool ();
4647 fCoinControlFeatures = settings.value (" fCoinControlFeatures" , false ).toBool ();
4748 nTransactionFee = settings.value (" nTransactionFee" ).toLongLong ();
@@ -79,6 +80,8 @@ QVariant OptionsModel::data(const QModelIndex & index, int role) const
7980 return QVariant (GUIUtil::GetStartOnSystemStartup ());
8081 case MinimizeToTray:
8182 return QVariant (fMinimizeToTray );
83+ case DisableTrxNotifications:
84+ return QVariant (fDisableTrxNotifications );
8285 case MapPortUPnP:
8386 return settings.value (" fUseUPnP" , GetBoolArg (" -upnp" , true ));
8487 case MinimizeOnClose:
@@ -139,6 +142,10 @@ bool OptionsModel::setData(const QModelIndex & index, const QVariant & value, in
139142 fMinimizeToTray = value.toBool ();
140143 settings.setValue (" fMinimizeToTray" , fMinimizeToTray );
141144 break ;
145+ case DisableTrxNotifications:
146+ fDisableTrxNotifications = value.toBool ();
147+ settings.setValue (" fDisableTrxNotifications" , fDisableTrxNotifications );
148+ break ;
142149 case MapPortUPnP:
143150 fUseUPnP = value.toBool ();
144151 settings.setValue (" fUseUPnP" , fUseUPnP );
@@ -249,6 +256,11 @@ bool OptionsModel::getMinimizeToTray()
249256 return fMinimizeToTray ;
250257}
251258
259+ bool OptionsModel::getDisableTrxNotifications ()
260+ {
261+ return fDisableTrxNotifications ;
262+ }
263+
252264bool OptionsModel::getMinimizeOnClose ()
253265{
254266 return fMinimizeOnClose ;
0 commit comments