cover: preferito custom (comune) con coordinate salvate (preferredLat/Lon); riga eventi: colonna Alta/Bassa con fade (mai sovrapposta)
This commit is contained in:
@@ -265,12 +265,25 @@ Page {
|
||||
updateList()
|
||||
var pref = appSettings.preferredPort
|
||||
if (pref !== "") {
|
||||
var found = false
|
||||
for (var i = 0; i < Tides.PORTS.length; i++) {
|
||||
if (Tides.PORTS[i][0] === pref) {
|
||||
page.openDetail(Tides.PORTS[i], i, false)
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
// preferito custom (comune): ricostruisci e apri il dettaglio
|
||||
if (!found && appSettings.preferredLat >= 0) {
|
||||
var lat = appSettings.preferredLat
|
||||
var lon = appSettings.preferredLon
|
||||
var np = Tides.nearestPort(lat, lon)
|
||||
var cost = np.km < 222 ? np.port[4].slice()
|
||||
: Tides.synthConst(lat, lon)
|
||||
page.openDetail([pref, qsTr("Italy"), lat, lon, cost,
|
||||
np.km < 222 ? "near:" + np.port[0] : "synth"],
|
||||
-1, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user