summaryrefslogtreecommitdiffstats
path: root/native/src/widget/helpers.rs
diff options
context:
space:
mode:
authorLibravatar 13r0ck <brock@szu.email>2022-12-22 13:53:56 -0700
committerLibravatar 13r0ck <brock@szu.email>2022-12-22 13:53:56 -0700
commit5b556250befc1f9a5a3bb7ff10696496765f4fe7 (patch)
tree50dbd3ea55254b58fa880226d32078a45806bd97 /native/src/widget/helpers.rs
parenta6d0d5773f0561a841a84b538523cbd97e91eccd (diff)
downloadiced-5b556250befc1f9a5a3bb7ff10696496765f4fe7.tar.gz
iced-5b556250befc1f9a5a3bb7ff10696496765f4fe7.tar.bz2
iced-5b556250befc1f9a5a3bb7ff10696496765f4fe7.zip
Use same name & order for toggler::new and helper
The helper function for the toggler widget switched the order and name of the arguments passed when creating the toggler widget. This just standardizes the order whether the dev is using the helper or the associated function.
Diffstat (limited to 'native/src/widget/helpers.rs')
-rw-r--r--native/src/widget/helpers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/widget/helpers.rs b/native/src/widget/helpers.rs
index 8cc1ae82..5b241f83 100644
--- a/native/src/widget/helpers.rs
+++ b/native/src/widget/helpers.rs
@@ -162,7 +162,7 @@ where
Renderer: crate::text::Renderer,
Renderer::Theme: widget::toggler::StyleSheet,
{
- widget::Toggler::new(is_checked, label, f)
+ widget::Toggler::new(label, is_checked, f)
}
/// Creates a new [`TextInput`].