diff options
author | Andrew Chow <github@achow101.com> | 2023-01-23 19:12:04 -0500 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-01-23 20:59:05 -0500 |
commit | 4de02def844102c08b65bf1311a333e7aca482b9 (patch) | |
tree | 3986e9631d9d4e8bf80857af62cb9c44664afca0 /src/qt/bitcoingui.cpp | |
parent | a62231bca629e945349255a1d331dd5c7a86ddd1 (diff) | |
download | bitcoin-4de02def844102c08b65bf1311a333e7aca482b9.tar.xz |
qt: Persist Mask Values option
The mask values option is memory only. If a user has enabled this
option, it's reasonable to expect that they would want to have it
enabled on the next start.
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index a7ffd367d7..51ed079a2b 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -647,6 +647,8 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel, interfaces::BlockAndH // initialize the disable state of the tray icon with the current value in the model. trayIcon->setVisible(optionsModel->getShowTrayIcon()); } + + m_mask_values_action->setChecked(_clientModel->getOptionsModel()->getOption(OptionsModel::OptionID::MaskValues).toBool()); } else { if(trayIconMenu) { |