mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
266 stars 94 forks source link

Fixed a bug that can't open a fileDialog to import/export a SDK file throughout the GUI. #250

Closed joji2468ng closed 1 year ago

joji2468ng commented 1 year ago

When export/import_SDKs_action is triggered, it sends False by default to the method, which is why the path argument receives False. The path argument needs to receive None to open a file dialog, To avoid this behavior and ensure None is passed instead, I used a lambda function.

miquelcampos commented 1 year ago

Hi @joji2468ng thanks for the PR! I will check it and merge it ASAP 😄

miquelcampos commented 1 year ago

@joji2468ng I have copy/pasted the fix of this PR by hand. Since it couldn't merge because of the mistake with the other PR you sent here 😄

Thanks for the contributions!