mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-20 19:58:57 +02:00
refactor: Pass interfaces::Node references to OptionsModel constructor
Will allow OptionsModel to read/write settings to the node settings.json file and share settings with the node, instead of storing them externally in QSettings. Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
This commit is contained in:
@@ -30,8 +30,8 @@ const char *DEFAULT_GUI_PROXY_HOST = "127.0.0.1";
|
||||
|
||||
static const QString GetDefaultProxyAddress();
|
||||
|
||||
OptionsModel::OptionsModel(QObject *parent, bool resetSettings) :
|
||||
QAbstractListModel(parent)
|
||||
OptionsModel::OptionsModel(interfaces::Node& node, QObject *parent, bool resetSettings) :
|
||||
QAbstractListModel(parent), m_node{node}
|
||||
{
|
||||
Init(resetSettings);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user