Bugfix: GUI/Options: Correctly read initial value of spkreuse

This commit is contained in:
Luke Dashjr 2022-05-21 07:25:04 +00:00
parent b7eb294a25
commit 1f15d0d2ee

View File

@ -331,8 +331,9 @@ bool OptionsModel::Init(bilingual_str& error)
addOverriddenOption("-port");
// rwconf settings that require a restart
// Caution: This is before general initialisation occurs!
f_peerbloomfilters = gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS);
f_rejectspkreuse = (SpkReuseMode != SRM_ALLOW);
f_rejectspkreuse = !(gArgs.GetArg("-spkreuse", DEFAULT_SPKREUSE) == "allow" || gArgs.GetBoolArg("-spkreuse", false));
// Display
if (settings.contains("FontForMoney")) {