refactor: set random PSK on default channel name change

pull/748/head
andrekir 2023-10-01 11:05:42 -03:00
rodzic a10fe75f64
commit e02ecaec6e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -87,7 +87,7 @@ fun EditChannelDialog(
keyboardActions = KeyboardActions(onDone = { }), keyboardActions = KeyboardActions(onDone = { }),
onValueChanged = { onValueChanged = {
nameInput = it nameInput = it
getRandomKey() if (pskInput == Channel.default.settings.psk) getRandomKey()
}, },
onFocusChanged = { isFocused = it.isFocused }, onFocusChanged = { isFocused = it.isFocused },
) )