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 20, 2024
1 parent 7e62d03 commit de4e089
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 de4e089

Please sign in to comment.