Skip to content

Commit 44dc75f

Browse files
committed
Add single increment buttons to number of plots input
1 parent 7b7f6a6 commit 44dc75f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/gui.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,11 +683,17 @@ impl MyApp {
683683
ui.label("Number of plots [#]: ");
684684

685685
ui.horizontal(|ui| {
686+
if ui.button("<").clicked() {
687+
self.number_of_plots = (self.number_of_plots - 1).clamp(1, 10);
688+
}
686689
ui.add(egui::DragValue::new(&mut self.number_of_plots)
687690
.clamp_range(1..=10))
688691
.on_hover_text("Select the number of plots to be shown.");
689-
692+
if ui.button(">").clicked() {
693+
self.number_of_plots = (self.number_of_plots + 1).clamp(1, 10);
694+
}
690695
});
696+
691697
ui.end_row();
692698
ui.label("Show Sent Commands");
693699
ui.add(toggle(&mut self.show_sent_cmds))

0 commit comments

Comments
 (0)