summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 02:01:56 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-15 02:01:56 +0100
commit9dd20ead085ff3b9b4bd441b5e4938cf8e813f35 (patch)
tree8f6ea8393a1cb68eef2d85472a16f68903da4dbe /examples/tour/src/main.rs
parent5827023ccc3f80012b17dbfe778fbd8b63186c99 (diff)
downloadiced-9dd20ead085ff3b9b4bd441b5e4938cf8e813f35.tar.gz
iced-9dd20ead085ff3b9b4bd441b5e4938cf8e813f35.tar.bz2
iced-9dd20ead085ff3b9b4bd441b5e4938cf8e813f35.zip
Rename `password` method in `TextInput` to `secure`
Diffstat (limited to '')
-rw-r--r--examples/tour/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 6d24b5ec..15d37896 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -613,11 +613,7 @@ impl<'a> Step {
Self::container("Text input")
.push("Use a text input to ask for different kinds of information.")
- .push(if is_secure {
- text_input.password()
- } else {
- text_input
- })
+ .push(text_input.secure(is_secure))
.push(
checkbox("Enable password mode", is_secure)
.on_toggle(StepMessage::ToggleSecureInput),