Changeset 15602 in josm
- Timestamp:
- 2019-12-20T07:19:47+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/animation/AnimationExtensionManager.java
r15231 r15602 5 5 import java.util.Date; 6 6 import java.util.GregorianCalendar; 7 8 import org.openstreetmap.josm.data.preferences.BooleanProperty; 7 9 8 10 /** … … 15 17 16 18 private static volatile AnimationExtension currentExtension; 19 private static final BooleanProperty PROP_ANIMATION = new BooleanProperty("gui.start.animation", true); 17 20 18 21 private AnimationExtensionManager() { … … 26 29 public static AnimationExtension getExtension() { 27 30 if (currentExtension == null) { 28 currentExtension = isChristmas() ? new ChristmasExtension() : new NoExtension(); 31 currentExtension = Boolean.TRUE.equals(PROP_ANIMATION.get()) && isChristmas() ? new ChristmasExtension() 32 : new NoExtension(); 29 33 } 30 34 return currentExtension;
Note:
See TracChangeset
for help on using the changeset viewer.