mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
cli, refactor: simplify DetailsRequested()
The bounds check is no longer needed after the merge of PR 21192.
This commit is contained in:
parent
db36a92c02
commit
be82139b2a
@ -404,7 +404,7 @@ private:
|
|||||||
return UNKNOWN_NETWORK;
|
return UNKNOWN_NETWORK;
|
||||||
}
|
}
|
||||||
uint8_t m_details_level{0}; //!< Optional user-supplied arg to set dashboard details level
|
uint8_t m_details_level{0}; //!< Optional user-supplied arg to set dashboard details level
|
||||||
bool DetailsRequested() const { return m_details_level > 0 && m_details_level < 5; }
|
bool DetailsRequested() const { return m_details_level; }
|
||||||
bool IsAddressSelected() const { return m_details_level == 2 || m_details_level == 4; }
|
bool IsAddressSelected() const { return m_details_level == 2 || m_details_level == 4; }
|
||||||
bool IsVersionSelected() const { return m_details_level == 3 || m_details_level == 4; }
|
bool IsVersionSelected() const { return m_details_level == 3 || m_details_level == 4; }
|
||||||
bool m_outbound_only_selected{false};
|
bool m_outbound_only_selected{false};
|
||||||
|
Loading…
Reference in New Issue
Block a user