Changeset 18998 in josm


Ignore:
Timestamp:
2024-02-26T13:46:54+01:00 (9 months ago)
Author:
taylor.smock
Message:

See #23355: Don't store stop answers for startup sanity check

File:
1 edited

Legend:

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

    r18986 r18998  
    438438        }
    439439        if (!canContinue || ed.getValue() <= 1) { // 0 == cancel (we want to stop) and 1 == stop
     440            // Never store cancel/stop -- this would otherwise lead to the user never seeing the window again, and JOSM just stopping.
     441            if (ConditionalOptionPaneUtil.getDialogReturnValue("sanityCheckFailed") != -1) {
     442                Config.getPref().put("message.sanityCheckFailed", null);
     443                Config.getPref().put("message.sanityCheckFailed.value", null);
     444            }
    440445            Lifecycle.exitJosm(true, -1);
    441446        }
Note: See TracChangeset for help on using the changeset viewer.