refactor(config): improve null node handling

This commit is contained in:
andrekir 2023-09-26 18:27:05 -03:00
parent a8d14b5288
commit 4e75a0c879
2 changed files with 7 additions and 7 deletions

View file

@ -751,7 +751,6 @@ class MainActivity : AppCompatActivity(), Logging {
return true
}
R.id.radio_config -> {
if (model.ourNodeInfo.value == null) return true
model.setDestNode(null)
supportFragmentManager.beginTransaction()
.add(R.id.mainActivityLayout, DeviceSettingsFragment())