Commit 474ebf0 1 parent d2d0488 commit 474ebf0 Copy full SHA for 474ebf0
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1447,7 +1447,7 @@ impl Ui {
1447
1447
text : impl Into < WidgetText > ,
1448
1448
) -> Response {
1449
1449
let mut response = self . radio ( * current_value == alternative, text) ;
1450
- if response. clicked ( ) {
1450
+ if response. clicked ( ) && * current_value != alternative {
1451
1451
* current_value = alternative;
1452
1452
response. mark_changed ( ) ;
1453
1453
}
@@ -1475,7 +1475,7 @@ impl Ui {
1475
1475
text : impl Into < WidgetText > ,
1476
1476
) -> Response {
1477
1477
let mut response = self . selectable_label ( * current_value == selected_value, text) ;
1478
- if response. clicked ( ) {
1478
+ if response. clicked ( ) && * current_value != selected_value {
1479
1479
* current_value = selected_value;
1480
1480
response. mark_changed ( ) ;
1481
1481
}
You can’t perform that action at this time.
0 commit comments