fltk-rs / fl2rust

A fluid (fltk ui designer) file to Rust transpiler
MIT License
52 stars 3 forks source link

Error generating wrong closure for MenuItem #3

Closed igorfs10 closed 3 years ago

igorfs10 commented 3 years ago

I'm creating a GUI with menu and compiler is throwing an error on MenuItem after generating it "closure is expected to take 1 argument, but it takes 0 arguments expected closure that takes 1 argument", I just need to put an unused parameter to fix, but I need to do it everytime I change the . fl file. I can be wrong but after taking a quick look I think it just need a between || at line 350 in gen.rs to fix, I don't have time now to check, but I can test this to see if it fix tomorrow, if this change doesn't affect other things

MoAlyousef commented 3 years ago

You’re right. It wasn’t modified after the 1.0 release of fltk-rs. i’ll update the master branch but I won’t be able to publish a new version till later tonight. I

igorfs10 commented 3 years ago

No problem, I just have time to check tomorrow. Thanks for this project and the quick response.

MoAlyousef commented 3 years ago

I've published a new version a few minutes ago.

igorfs10 commented 3 years ago

It worked, thanks. I'm closing as it's fixed.