mirror of https://github.com/stella-emu/stella.git
minor tooltip change for ARM chips emulated
This commit is contained in:
parent
1f9885224f
commit
48dd48c110
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue