Ticket #6725: 6725.patch
File 6725.patch, 2.1 KB (added by , 3 years ago) |
---|
-
src/org/openstreetmap/josm/gui/MainApplication.java
1222 1222 static void loadLatePlugins(SplashScreen splash, SplashProgressMonitor monitor, Collection<PluginInformation> pluginsToLoad) { 1223 1223 monitor.indeterminateSubTask(tr("Loading plugins")); 1224 1224 PluginHandler.loadLatePlugins(splash, pluginsToLoad, monitor.createSubTaskMonitor(1, false)); 1225 GuiHelper.runInEDTAndWait(() -> toolbar.refreshToolbarControl()); 1225 GuiHelper.runInEDTAndWait(() -> { 1226 toolbar.enableInfoAboutMissingAction(); 1227 toolbar.refreshToolbarControl(); 1228 }); 1226 1229 } 1227 1230 1228 1231 private static void processOffline(ProgramArguments args) { -
src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
582 582 583 583 public final JToolBar control = new JToolBar(); 584 584 private final Map<Object, ActionDefinition> buttonActions = new ConcurrentHashMap<>(30); 585 private boolean showInfoAboutMissingActions; 585 586 586 587 @Override 587 588 public PreferenceSetting createPreferenceSetting() { … … 1112 1113 ActionDefinition a = actionParser.loadAction(s); 1113 1114 if (a != null) { 1114 1115 result.add(a); 1115 } else {1116 } else if (showInfoAboutMissingActions) { 1116 1117 Logging.info("Could not load tool definition "+s); 1117 1118 } 1118 1119 } … … 1292 1293 public void taggingPresetsModified() { 1293 1294 refreshToolbarControl(); 1294 1295 } 1296 1297 /** 1298 * Call with {@code true} when all plugins were loaded. 1299 * @since xxx 1300 */ 1301 public void enableInfoAboutMissingAction() { 1302 this.showInfoAboutMissingActions = true; 1303 } 1304 1305 1295 1306 }