Merge branch 'fit_to_qrz_spots' into 'master'

Respect fit-to-qrz if spots-over-grid is enabled.

See merge request gridtracker.org/gridtracker!23
merge-requests/31/head
Paul Traina 2020-11-13 03:32:06 +00:00
commit 195298e691
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -5670,8 +5670,11 @@ function handleWsjtxStatus(newMessage) {
txrxdec.innerHTML = "RECEIVE";
}
if (newMessage.TxEnabled == 1 && g_spotsEnabled == 0) {
if (g_mapSettings.fitQRZ) {
if (newMessage.TxEnabled) {
if (
g_mapSettings.fitQRZ &&
(!g_spotsEnabled || g_receptionSettings.mergeSpots)
) {
if (g_lastMapView == null) {
g_lastMapView = {};
g_lastMapView.LoLa = g_mapView.getCenter();