Skip to content
Snippets Groups Projects
Commit 0c2ed8a5 authored by Federico Lolli's avatar Federico Lolli
Browse files

Updated quick command switch to start from 1

parent 78dabb13
Branches
No related tags found
No related merge requests found
......@@ -178,13 +178,13 @@ fn show_command_overview(ui: &mut Ui, commands: &mut Vec<Command>) {
cmd.ui_visible = true;
}
}
if commands.len() < 10 {
if commands.len() < 9 {
let plus_btn = ui.add_sized(
Vec2::new(300.0, 10.0),
egui::Button::new(RichText::new("+").size(17.0)),
);
if plus_btn.clicked() {
commands.push(Command::new(commands.len()));
commands.push(Command::new(commands.len() + 1));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment