Skip to content

Commit

Permalink
Merge pull request #3 from SDesya74/patch-1
Browse files Browse the repository at this point in the history
fix: add "ui" argument to modal.button
  • Loading branch information
n00kii authored Dec 2, 2022
2 parents 7cf6c93 + b18933e commit a7781a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ modal.show(|ui| {
});
modal.buttons(ui, |ui| {
// After clicking, the modal is automatically closed
if modal.button("close").clicked() {
if modal.button(ui, "close").clicked() {
println!("Hello world!")
};
});
Expand Down

0 comments on commit a7781a8

Please sign in to comment.