mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
fix(settings): load LoTW certificate status at startup
The LoTW upload card read uiState.lotwCertificate which was only populated when the config dialog was opened (LoadLoTWUploadStatus). On first entry to the settings screen it stayed null, showing 'certificate not imported' even though a certificate was stored. Load certificate + station once in init so the card is correct from the first frame.
This commit is contained in:
1 parent
52b733a450
commit
caddba5b81
1 file changed
+4
+4
@@ -163,6 +163,10 @@ class SettingsViewModel(
|
||||
_uiState.update { it.copy(logbookRecords = records) }
|
||||
}
|
||||
}
|
||||
// Load the LoTW upload certificate + station once at startup so the
|
||||
// settings card reflects the real state on first frame (previously it
|
||||
// stayed "not imported" until the config dialog was opened).
|
||||
loadLoTWUploadStatus()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user