diff --git a/package.nw/lib/gt.js b/package.nw/lib/gt.js index 5c148ae5..247144a9 100644 --- a/package.nw/lib/gt.js +++ b/package.nw/lib/gt.js @@ -7214,6 +7214,10 @@ function handleWsjtxDecode(newMessage) { callsign.pota = g_potaSpots.filter(item => item.activator === callsign.DEcall)[0]; } + else + { + callsign.pota = g_NotaAPota; + } if (newMessage.NW) { diff --git a/package.nw/lib/pota.js b/package.nw/lib/pota.js index 6e4f769d..3166c80e 100644 --- a/package.nw/lib/pota.js +++ b/package.nw/lib/pota.js @@ -5,6 +5,11 @@ var g_potaPlaces = null; var g_potaSpots = null; +const g_NotaAPota = { + refrence: null, + name: null +} + function ingestPotaPlaces(buffer) { try diff --git a/package.nw/lib/roster/processRosterHunting.js b/package.nw/lib/roster/processRosterHunting.js index f128aeb9..1c97cfc9 100644 --- a/package.nw/lib/roster/processRosterHunting.js +++ b/package.nw/lib/roster/processRosterHunting.js @@ -429,7 +429,7 @@ function processRosterHunting(callRoster, rosterSettings) } // Hunting for POTAs - if (huntPOTA.checked == true && window.opener.g_mapSettings.offlineMode == false && callObj.pota != null) + if (huntPOTA.checked == true && window.opener.g_mapSettings.offlineMode == false && callObj.pota.reference != null) { let huntTotal = callObj.pota.length; let huntFound = 0, layeredFound = 0, workedFound = 0, layeredWorkedFound = 0; diff --git a/package.nw/lib/roster/rosterColumns.js b/package.nw/lib/roster/rosterColumns.js index e7fe544c..fa19a85f 100644 --- a/package.nw/lib/roster/rosterColumns.js +++ b/package.nw/lib/roster/rosterColumns.js @@ -381,7 +381,8 @@ const ROSTER_COLUMNS = { tableData: (callObj) => ({ name: "POTA", rawAttrs: callObj.style.pota, - html: callObj.pota.join(",") + title: callObj.pota.name, + html: callObj.pota.reference }) } } diff --git a/package.nw/package.json b/package.nw/package.json index 22e05182..df4d7314 100644 --- a/package.nw/package.json +++ b/package.nw/package.json @@ -23,7 +23,7 @@ "start": "run --mirror https://dl.nwjs.io/ ." }, "build": { - "nwVersion": "0.54.0", + "nwVersion": "0.59.0", "output": "../dist/.", "targets": [ "zip",