Add comment to clarify the SteadyException case.

This commit is contained in:
Benoit Marty 2023-12-26 15:39:56 +01:00
parent 8ef1f523a0
commit 481d80d1f0

View file

@ -23,6 +23,7 @@ internal fun BackupUploadState.isBackingUp(): Boolean {
return when (this) {
BackupUploadState.Waiting,
is BackupUploadState.Uploading -> true
// The backup is in progress, but there have been a network issue, so we have to warn the user.
is BackupUploadState.SteadyException -> exception is SteadyStateException.Connection
BackupUploadState.Unknown,
BackupUploadState.Done,