| 426 | } |
| 427 | |
| 428 | bool ChoiceSetting::Write( const wxString &value ) |
| 429 | { |
| 430 | auto index = Find( value ); |
| 431 | if (index >= mSymbols.size()) |
| 432 | return false; |
| 433 | |
| 434 | auto result = gPrefs->Write( mKey, value ); |
| 435 | mMigrated = true; |
| 436 | |
| 437 | if (mpOtherSettings) |
| 438 | mpOtherSettings->Invalidate(); |
| 439 | |
| 440 | return result; |
| 441 | } |
| 442 | |
| 443 | void ChoiceSetting::SetDefault( long value ) |
| 444 | { |