Move "show app intro" to phone settings (#2984)

This commit is contained in:
Phil Oliver 2025-09-05 13:24:41 -04:00 committed by GitHub
parent f78c440c61
commit 0cb0b19128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 9 deletions

View file

@ -63,7 +63,6 @@ import com.geeksville.mesh.repository.radio.MeshActivity
import com.geeksville.mesh.repository.radio.RadioInterfaceService
import com.geeksville.mesh.service.MeshServiceNotifications
import com.geeksville.mesh.service.ServiceAction
import com.geeksville.mesh.ui.common.components.MainMenuAction
import com.geeksville.mesh.ui.node.components.NodeMenuAction
import com.geeksville.mesh.util.getShortDate
import com.geeksville.mesh.util.positionToMeter
@ -1001,12 +1000,8 @@ constructor(
private val _showAppIntro: MutableStateFlow<Boolean> = MutableStateFlow(!uiPrefs.appIntroCompleted)
val showAppIntro: StateFlow<Boolean> = _showAppIntro.asStateFlow()
fun onMainMenuAction(action: MainMenuAction) {
when (action) {
MainMenuAction.SHOW_INTRO -> _showAppIntro.update { true }
else -> Unit
}
fun showAppIntro() {
_showAppIntro.update { true }
}
// endregion