pota spots now starts and runs automagically if spots is enabled

settings-file-dialogs
Matthew Chambers 2022-02-20 11:12:26 -06:00
rodzic aee8c8bb97
commit 7a6f6ecf6b
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -13762,6 +13762,7 @@ var g_startupTable = [
[registerHotKeys, "Registered Hotkeys"], [registerHotKeys, "Registered Hotkeys"],
[gtChatSystemInit, "Chat System Initialized"], [gtChatSystemInit, "Chat System Initialized"],
[getPotaPlaces, "Loading POTA Database"], [getPotaPlaces, "Loading POTA Database"],
[getPotaSpots, "Starting POTA Spots Pump"],
[downloadAcknowledgements, "Contributor Acknowledgements Loaded"], [downloadAcknowledgements, "Contributor Acknowledgements Loaded"],
[postInit, "Finalizing System"] [postInit, "Finalizing System"]
]; ];

Wyświetl plik

@ -47,7 +47,7 @@ function ingestPotaSpots(buffer)
function getPotaSpots() function getPotaSpots()
{ {
if (g_mapSettings.offlineMode == false) if (g_mapSettings.offlineMode == false && g_spotsEnabled == 1)
{ {
getBuffer( getBuffer(
"https://api.pota.app/spot/activator", "https://api.pota.app/spot/activator",