Skip to content

Commit

Permalink
Hide the Reset button when already default
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Mar 21, 2024
1 parent ffbeb23 commit f4f79e5
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ fun MtuDialog(
}
)

PrimaryButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.reset_to_default_button),
onClick = onResetMtu
)
if (mtuInitial != null) {
PrimaryButton(
modifier = Modifier.fillMaxWidth(),
text = stringResource(R.string.reset_to_default_button),
onClick = onResetMtu
)
}

PrimaryButton(
modifier = Modifier.fillMaxWidth(),
Expand Down

0 comments on commit f4f79e5

Please sign in to comment.