fix(wavelog): the auto-upload switch had nothing behind it

Deleting the ten-minute polling loop left the "auto upload" switch in settings with no
consumer - the operator could turn it on and nothing would ever act on it, which is worse
than the loop it replaced.

Uploading now happens when a contact is saved. That is what the switch always meant, and
doing it at that moment means somebody is present to see the outcome: a partial failure
says so, and the QSOs that did not go stay in the queue for a manual upload from settings.
The loop reported nothing at all - a grid mismatch hit an empty if block and every other
failure retried forever in the background.

The upload goes through the view model rather than the composable, so the log screen still
touches no repository.
This commit is contained in:
mckero committed 2026-08-26 01:30:14 +00:00
1 parent 4567f46867
commit 758dc6d567
5 files changed
+54 -7

No files matched your search

@@ -266,6 +266,7 @@
<string name="wavelog_not_configured">未配置 WaveLog 服务器</string>
<string name="wavelog_no_station">读不到站点信息 - 请检查站点 ID 与密钥权限</string>
<string name="wavelog_upload_failed">上传失败</string>
<string name="wavelog_upload_queued">部分联络未能上传, 仍在队列中</string>
<string name="lotw_list_updated">LoTW 卫星列表已更新: %1$d 个</string>
<string name="lotw_list_failed">LoTW 列表更新失败: %1$s</string>
<string name="log_call_too_short">呼号太短</string>
@@ -297,6 +297,7 @@
<string name="wavelog_not_configured">WaveLog server not configured</string>
<string name="wavelog_no_station">Cannot read the station profile - check the station ID and key permissions</string>
<string name="wavelog_upload_failed">Upload failed</string>
<string name="wavelog_upload_queued">Some contacts could not be uploaded and stay in the queue</string>
<string name="lotw_list_updated">LoTW satellite list updated: %1$d entries</string>
<string name="lotw_list_failed">LoTW list update failed: %1$s</string>
<string name="log_call_too_short">Callsign too short</string>