The Trunk: System-mt.1180.mcz

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

The Trunk: System-mt.1180.mcz

Marcel Taeumel uploaded a new version of System to project The Trunk:

==================== Summary ====================

Name: System-mt.1180
Author: mt
Time: 15 October 2020, 2:23:31.928368 pm
UUID: 25a53f29-0b97-c54a-a1f9-e19fed013518
Ancestors: System-mt.1179

Enables restoring of default values for pragma preferences. Fixes pref-setters that do not support 'nil' argument. Note that now both pref-getter and pref-setter have this 'nil' contract.

=============== Diff against System-mt.1179 ===============

Item was changed:
  ----- Method: PragmaPreference>>restoreDefaultValue (in category 'initialization') -----
+ "Try to send a reset request to the preference provider by setting the preference value to 'nil' to exploit the usual ifNil-pattern in the pragma-preference's getter.
+ Note that this reset is silent-by-design to be as fast as possible. If you want to send out notifications, try this:
+ self rawValue: self preferenceValue; notifyInformeeOfChange."
+ [[self rawValue: nil] valueSupplyingAnswer: true]
+ ifError: [:msg |
+ Transcript
+ showln: 'Failed to reset pragma preference: ', provider printString, ' >> ', getter printString;
+ showln: msg].!
- "Pragma preferences preserve their current value"!

Item was changed:
  ----- Method: RecentMessages class>>numberOfRecentSubmissionsToStore: (in category 'preferences') -----
+ numberOfRecentSubmissionsToStore: anIntegerOrNil
+ self default maximumSubmissionCount: (anIntegerOrNil ifNil: [30])!
- numberOfRecentSubmissionsToStore: anInteger
- self default maximumSubmissionCount: anInteger!