mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Added auto passes recalculation on TLE update
This commit is contained in:
1 parent
c5c8df0b5e
commit
216f96caef
1 file changed
+5
@@ -59,6 +59,11 @@ class PassesViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
viewModelScope.launch {
|
||||
repository.updateState.collect { updateState ->
|
||||
if (updateState is DataState.Success) calculatePasses()
|
||||
}
|
||||
}
|
||||
calculatePasses()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user