Changeset 18786 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2023-07-27T15:47:48+02:00 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java
r18764 r18786 21 21 import javax.swing.JCheckBox; 22 22 import javax.swing.JLabel; 23 import javax.swing.JOptionPane; 23 24 import javax.swing.JPanel; 24 25 … … 375 376 OAuthAccessTokenHolder.getInstance().save(CredentialsManager.getInstance()); 376 377 GuiHelper.runInEDT(OAuthAuthenticationPreferencesPanel.this::refreshView); 378 if (!token.isPresent()) { 379 GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.getMainPanel(), 380 tr("Authentication failed, please check browser for details."), 381 tr("OAuth Authentication Failed"), 382 JOptionPane.ERROR_MESSAGE)); 383 } 377 384 }, OsmScopes.read_gpx, OsmScopes.write_gpx, 378 385 OsmScopes.read_prefs, OsmScopes.write_prefs,
Note:
See TracChangeset
for help on using the changeset viewer.