gmatyszczak / screen-generator-plugin

Apache License 2.0
147 stars 28 forks source link

Can't Undo/Redo #9

Closed DjakaTechnology closed 4 years ago

DjakaTechnology commented 4 years ago

Hello, First of all good work and thanks for making it open source it really helped me.

Recently I tried to modified your plugin to fulfill my team needs and stumble across this issue. It seems I can't undo my action after generating a screen. This give me quite a hassle since my module is quite big and I have to scroll through it to delete it one by one.

It seems to wrap WriteActionDispatcherImpl.dispatch with WriteCommandAction.runWriteCommandAction instead of ApplicationManager.getApplication().runWriteAction solved the issue.

I can open a PR if you need a hand on this, feel free to tell me anytime

And again, thank you for creating this plugin and the medium article I really appreciate it 👍

gmatyszczak commented 4 years ago

Hi, thanks for feedback!

If you have already a working solution then please go ahead and create a PR :)

DjakaTechnology commented 4 years ago

I've opened a PR for this. Thank you :D

gmatyszczak commented 4 years ago

Plugin update is live now, you can check version 1.1.0 :)