Changeset 8909 in josm


Ignore:
Timestamp:
2015-10-19T19:50:05+02:00 (6 years ago)
Author:
simon04
Message:

see #8070 - Remember location also of JOSM core LatLonDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LatLonDialog.java

    r8855 r8909  
    280280    @Override
    281281    public void setVisible(boolean visible) {
     282        final String preferenceKey = getClass().getName() + ".geometry";
    282283        if (visible) {
    283             WindowGeometry.centerInWindow(Main.parent, getSize()).applySafe(this);
     284            new WindowGeometry(
     285                    preferenceKey,
     286                    WindowGeometry.centerInWindow(getParent(), getSize())
     287            ).applySafe(this);
     288        } else {
     289            new WindowGeometry(this).remember(preferenceKey);
    284290        }
    285291        super.setVisible(visible);
Note: See TracChangeset for help on using the changeset viewer.