Fix: Tagebuch-Foto bei neuem Eintrag — GPS-Fetch bei anhängigen Dateien überspringen (SW by-v875)
This commit is contained in:
parent
b818f85f36
commit
0ab88ef6b6
5 changed files with 14 additions and 12 deletions
|
|
@ -1678,9 +1678,11 @@ window.Page_diary = (() => {
|
|||
});
|
||||
|
||||
await UI.asyncButton(submitBtn, async () => {
|
||||
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort
|
||||
// Auto-Wetter: nur bei neuem Eintrag ohne GPS-Standort und OHNE anhängige Dateien.
|
||||
// Wenn Dateien hochzuladen sind, dürfen wir keinen langen await vor dem Upload machen —
|
||||
// iOS macht File-Handles nach längerer Pause ungültig (WebKit-Bug).
|
||||
let _clientWeather = null;
|
||||
if (!isEdit && _locLat == null) {
|
||||
if (!isEdit && _locLat == null && _newFiles.length === 0) {
|
||||
try {
|
||||
const pos = await API.getLocation();
|
||||
const wd = await API.weather.get(pos.lat, pos.lon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue