Skip to content

Commit 8979b85

Browse files
committed
reset device index when clearing history
1 parent afeb4fc commit 8979b85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ impl MyApp {
785785
ui.horizontal( |ui| {
786786
if ui.button("Clear Device History").clicked() {
787787
self.serial_devices = SerialDevices::default();
788+
self.device.clear();
789+
self.device_idx = 0;
788790
clear_serial_settings();
789791
}
790792
if ui.button("Reset Labels").clicked() {

0 commit comments

Comments
 (0)