Changeset 15708 in josm
- Timestamp:
- 2020-01-14T08:56:32+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r15705 r15708 9 9 10 10 import org.openstreetmap.josm.actions.mapmode.DrawAction; 11 import org.openstreetmap.josm.data.preferences.BooleanProperty; 11 12 import org.openstreetmap.josm.gui.Notification; 12 13 import org.openstreetmap.josm.gui.util.GuiHelper; … … 18 19 */ 19 20 public class ViewportFollowToggleAction extends ToggleAction { 21 22 /** 23 * Defines if a notification should be displayed after enabling and disabling 24 */ 25 public static final BooleanProperty PROP_NOTIFICATION = new BooleanProperty("viewportfollow.notification", true); 20 26 21 27 /** … … 39 45 toggleSelectedState(e); 40 46 DrawAction.VIEWPORT_FOLLOWING.put(isSelected()); 41 if (!getShortcut().getKeyText().isEmpty()) { 47 if (!getShortcut().getKeyText().isEmpty() && PROP_NOTIFICATION.get()) { 42 48 String msg = isSelected() 43 49 ? tr("Viewport following is enabled, press {0} to disable it", getShortcut().getKeyText())
Note:
See TracChangeset
for help on using the changeset viewer.