mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Minor code cleanup and clippy fixes
This commit is contained in:
@@ -104,10 +104,8 @@ impl ExampleApp {
|
||||
region.columns(self.num_columns, |cols| {
|
||||
for (i, col) in cols.iter_mut().enumerate() {
|
||||
col.add(label!("Column {} out of {}", i + 1, self.num_columns));
|
||||
if i + 1 == self.num_columns {
|
||||
if col.add(Button::new("Delete this")).clicked {
|
||||
self.num_columns -= 1;
|
||||
}
|
||||
if i + 1 == self.num_columns && col.add(Button::new("Delete this")).clicked {
|
||||
self.num_columns -= 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user