Skip to content

Commit

Permalink
Remove empty label.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Oct 11, 2023
1 parent e19ddda commit 9c9c6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion four-bar-ui/src/app/proj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ impl Projects {

pub(crate) fn select(&mut self, ui: &mut Ui) {
if self.list.is_empty() {
ComboBox::from_id_source("proj").show_ui(ui, |ui| ui.label("No Project"));
ComboBox::from_id_source("proj").show_ui(ui, |_| ());
} else {
ComboBox::from_id_source("proj").show_index(ui, &mut self.curr, self.list.len(), |i| {
let proj = &self.list[i];
Expand Down

0 comments on commit 9c9c6d6

Please sign in to comment.