File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 8
8
#include < common/settings.h>
9
9
#include < common/system.h>
10
10
#include < interfaces/node.h>
11
+ #include < mapport.h>
11
12
#include < qt/guiconstants.h>
12
13
#include < qt/guiutil.h>
13
14
#include < qt/optionsmodel.h>
@@ -28,11 +29,19 @@ OptionsQmlModel::OptionsQmlModel(interfaces::Node& node)
28
29
{
29
30
m_dbcache_size_mib = SettingToInt (m_node.getPersistentSetting (" dbcache" ), nDefaultDbCache);
30
31
32
+ m_listen = SettingToBool (m_node.getPersistentSetting (" listen" ), DEFAULT_LISTEN);
33
+
34
+ m_natpmp = SettingToBool (m_node.getPersistentSetting (" natpmp" ), DEFAULT_NATPMP);
35
+
31
36
int64_t prune_value{SettingToInt (m_node.getPersistentSetting (" prune" ), 0 )};
32
37
m_prune = (prune_value > 1 );
33
38
m_prune_size_gb = m_prune ? PruneMiBtoGB (prune_value) : DEFAULT_PRUNE_TARGET_GB;
34
39
35
40
m_script_threads = SettingToInt (m_node.getPersistentSetting (" par" ), DEFAULT_SCRIPTCHECK_THREADS);
41
+
42
+ m_server = SettingToBool (m_node.getPersistentSetting (" server" ), false );
43
+
44
+ m_upnp = SettingToBool (m_node.getPersistentSetting (" upnp" ), DEFAULT_UPNP);
36
45
}
37
46
38
47
void OptionsQmlModel::setDbcacheSizeMiB (int new_dbcache_size_mib)
You can’t perform that action at this time.
0 commit comments