Re-enabled the rotator control switch

pull/101/head
Arty Bishop 2022-07-16 13:33:50 +02:00
rodzic 9529f74c48
commit 0de157f3e2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 5C71CFDC37AD73CC
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -162,6 +162,7 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
settingsRemote.remotePort.isEnabled = isChecked
settingsRemote.remotePortEdit.setText(viewModel.getRotatorPort())
setOnCheckedChangeListener { _, isChecked ->
viewModel.setRotatorEnabled(isChecked)
settingsRemote.remoteIp.isEnabled = isChecked
settingsRemote.remotePort.isEnabled = isChecked
}