We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c3b2e commit 8046b18Copy full SHA for 8046b18
app/src/main/java/to/bitkit/ui/settings/advanced/ElectrumConfigViewModel.kt
@@ -113,12 +113,12 @@ class ElectrumConfigViewModel @Inject constructor(
113
fun resetToDefault() {
114
val defaultServer = ElectrumServer.parse(Env.defaultElectrumServer)
115
_uiState.update {
116
- it.copy(
+ val newState = it.copy(
117
host = defaultServer.host,
118
port = defaultServer.getPort().toString(),
119
protocol = defaultServer.protocol,
120
- hasEdited = false,
121
)
+ newState.copy(hasEdited = computeHasEdited(newState))
122
}
123
124
0 commit comments