mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: Actually fix dropdown default values
This commit is contained in:
@@ -308,8 +308,10 @@ namespace hex {
|
||||
}
|
||||
|
||||
nlohmann::json DropDown::store() {
|
||||
if (this->m_value == -1)
|
||||
return this->m_defaultItem;
|
||||
if (size_t(this->m_value) >= this->m_items.size())
|
||||
return nullptr;
|
||||
return this->m_defaultItem;
|
||||
|
||||
return this->m_settingsValues[this->m_value];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user