Changeset 16833 in josm for trunk/src/org


Ignore:
Timestamp:
2020-08-03T19:57:20+02:00 (4 years ago)
Author:
simon04
Message:

fix #19437 - OpenBrowserAction: make warning threshold of browser windows configurable

Advanced preference key warn.open.maxbrowser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/OpenBrowserAction.java

    r15706 r16833  
    1616import org.openstreetmap.josm.gui.MainApplication;
    1717import org.openstreetmap.josm.gui.help.HelpUtil;
     18import org.openstreetmap.josm.spi.preferences.Config;
    1819import org.openstreetmap.josm.tools.ImageProvider;
    1920import org.openstreetmap.josm.tools.OpenBrowser;
     
    6162    public void actionPerformed(ActionEvent e) {
    6263        final int size = urls.size();
    63         if (size > 10 && !confirmLaunchMultiple(size)) {
     64        if (size > Config.getPref().getInt("warn.open.maxbrowser", 10) && !confirmLaunchMultiple(size)) {
    6465            return;
    6566        }
Note: See TracChangeset for help on using the changeset viewer.