Update messages

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head v1.5.1
Taylor Smock 2020-04-23 12:53:04 -06:00
rodzic 5b68e077d2
commit a8d8c6b48d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -185,17 +185,19 @@ public final class MapWithAIDataUtils {
monitor.close();
}
} else {
final Notification noUrls = MapWithAIPreferenceHelper.getMapWithAIUrl().isEmpty() ? new Notification(tr(
"There are no defined URLs. Attempting to add the appropriate servers.\n(Redownload may be required)"))
final Notification noUrls = MapWithAIPreferenceHelper.getMapWithAIUrl().isEmpty()
? new Notification(tr(
"There are no defined URLs. Attempting to add the appropriate servers.\nPlease try again."))
: new Notification(tr("No URLS are enabled"));
if (MapWithAIPreferenceHelper.getMapWithAIUrl().isEmpty()
&& MapWithAILayerInfo.instance.getDefaultLayers().isEmpty()) {
MapWithAILayerInfo.instance.loadDefaults(true, MainApplication.worker, false, () -> getData(bbox));
}
noUrls.setDuration(Notification.TIME_DEFAULT);
noUrls.setIcon(JOptionPane.INFORMATION_MESSAGE);
noUrls.setHelpTopic(ht("Plugin/MapWithAI#Preferences"));
GuiHelper.runInEDT(noUrls::show);
if (MapWithAIPreferenceHelper.getMapWithAIUrl().isEmpty()
&& MapWithAILayerInfo.instance.getDefaultLayers().isEmpty()) {
MapWithAILayerInfo.instance.loadDefaults(true, MainApplication.worker, false,
() -> Logging.info("MapWithAI Sources: Initialized sources"));
}
}
return dataSet;
}