Skip to content

Commit

Permalink
Rescan button removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcebox committed Jan 24, 2022
1 parent f97e9df commit 07aaedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated `eframe` dependency to `0.16`
- Updated `simple_logger` dependency to `2.1`. Now using UTC timestamps.

### Removed

- Rescan button. Device changes are now detected automatically.

## [1.0.0] - 2021-10-31

First stable release.
Expand Down
12 changes: 1 addition & 11 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ pub fn device_selection(
ui.set_enabled(!device_list.is_empty());

let combo_box = egui::ComboBox::from_id_source("device_list")
.width(ui.available_width() - 100.0)
.width(ui.available_width() - 10.0)
.show_index(ui, &mut device_index, device_list.len(), |i| {
if device_count > 0 {
device_list[i].clone()
Expand All @@ -597,16 +597,6 @@ pub fn device_selection(
}
};
});

ui.centered_and_justified(|ui| {
if ui
.button("Rescan")
.on_hover_text("Search for new MIDI devices\n and update device list")
.clicked()
{
message_sender.send(Message::RescanDevices).ok();
};
});
});
}

Expand Down

0 comments on commit 07aaedf

Please sign in to comment.