diff options
author | 2023-04-12 04:25:02 +0200 | |
---|---|---|
committer | 2023-04-12 04:25:02 +0200 | |
commit | 6b8548869ea25ad7bb7a49fad77adfa3b43cc87d (patch) | |
tree | 230c16bf10904d6b199587b743169b286eb555b4 /native | |
parent | 70e4af46aaa9f0750bad2b8b6ed676dd841d6401 (diff) | |
download | iced-6b8548869ea25ad7bb7a49fad77adfa3b43cc87d.tar.gz iced-6b8548869ea25ad7bb7a49fad77adfa3b43cc87d.tar.bz2 iced-6b8548869ea25ad7bb7a49fad77adfa3b43cc87d.zip |
Remove unnecessary `is_disabled` check in `text_input::draw`
A disabled `TextInput` cannot be focused.
Diffstat (limited to '')
-rw-r--r-- | native/src/widget/text_input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 63751b4d..d704692d 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -998,7 +998,7 @@ pub fn draw<Renderer>( % 2 == 0; - let cursor = if is_cursor_visible && !is_disabled { + let cursor = if is_cursor_visible { Some(( renderer::Quad { bounds: Rectangle { |