minor tooltip change for ARM chips emulated

This commit is contained in:
Thomas Jentzsch 2021-10-20 12:22:17 +02:00
parent 1f9885224f
commit 48dd48c110
2 changed files with 5 additions and 3 deletions

View File

@ -231,9 +231,9 @@ void CartridgeARMWidget::handleChipType()
tip = tip.substr(0, 25);
buf << tip << "\nCurrent:\n"
<< chipProps.MHz << " MHz, "
<< chipProps.flashBanks << " flash bank"
<< (chipProps.flashBanks > 1 ? "s" : "") << ", "
<< chipProps.MHz << " MHz, "
<< chipProps.flashCycles - 1 << " wait states";
myChipType->setToolTip(buf.str());
}

View File

@ -752,9 +752,11 @@ const Variant& Settings::value(const string& key) const
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Settings::setValue(const string& key, const Variant& value, bool persist)
{
auto it = myPermanentSettings.find(key);
const auto it = myPermanentSettings.find(key);
if(it != myPermanentSettings.end()) {
if (persist && it->second != value && myRespository->atomic()) myRespository->atomic()->save(key, value);
if (persist && it->second != value && myRespository->atomic())
myRespository->atomic()->save(key, value);
it->second = value;
}
else