We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab1424d commit 887e907Copy full SHA for 887e907
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/MtuDialog.kt
@@ -119,11 +119,13 @@ fun MtuDialog(
119
}
120
)
121
122
- PrimaryButton(
123
- modifier = Modifier.fillMaxWidth(),
124
- text = stringResource(R.string.reset_to_default_button),
125
- onClick = onResetMtu
126
- )
+ if (mtuInitial != null) {
+ PrimaryButton(
+ modifier = Modifier.fillMaxWidth(),
+ text = stringResource(R.string.reset_to_default_button),
+ onClick = onResetMtu
127
+ )
128
+ }
129
130
PrimaryButton(
131
modifier = Modifier.fillMaxWidth(),
0 commit comments