CodeDead / DeadLock

Unlock files and folders!
https://codedead.com
GNU General Public License v3.0
140 stars 23 forks source link

Some refactoring #1

Closed akorb closed 8 years ago

akorb commented 8 years ago

I implemented the correct async pattern for the Update process. It's pretty often misused in 'ListViewLocker' too but I wanted first see whether such changes are fine for you.

The "A new update is available, do you want to update?" dialog blocks the GUI thread now. I think that offers probably a better user experience. I kept the actual FrmUpdater unblocking, maybe you want it exactly that way.

I hope I could contribute something helpful to your project :)

CodeDead commented 8 years ago

Hello !

We have looked at your Pull request and have merged it with the master branch of DeadLock. Thank you for helping us improve DeadLock ;) !

Updates themselves should be done in the background (as you’ve implemented correctly) without locking up the GUI because this can significantly increase start-up times for DeadLock since the update function is called when the main form is loading. As it is right now with your pull request, everything is running fine. Whether the ‘Do you want to update’ dialog blocks the GUI is not actually a problem so we’ll keep it as you’ve implemented it ;).

Thank you for the help !

Kind regards

Alessandro Mercier http://codedead.com/

Van: Andreas Korb [mailto:notifications@github.com] Verzonden: zaterdag 16 januari 2016 0:16 Aan: CodeDead/DeadLock DeadLock@noreply.github.com Onderwerp: [DeadLock] Some refactoring (#1)

I implemented the correct async pattern for the Update process. It's pretty often misused in 'ListViewLocker' too but I wanted first see whether such changes are fine for you.

The "A new update is available, do you want to update?" dialog blocks the GUI thread now. I think that offers probably a better user experience. I kept the actual FrmUpdater unblocking, maybe you want it exactly that way.

I hope I could contribute something helpful to your project :)


You can view, comment on, or merge this pull request online at:

https://github.com/CodeDead/DeadLock/pull/1

Commit Summary

File Changes

Patch Links:

— Reply to this email directly or view it on GitHub https://github.com/CodeDead/DeadLock/pull/1 .

akorb commented 8 years ago

I'm glad you like it :) Did you actually intend to revert the 'async' changes with your latest commit? I'm a little bit confused now.

CodeDead commented 8 years ago

Hello sir,

No, an issue occurred when the project was synced on my machine. I’m using the GitHub for Visual Studio extension but apparently it contains a couple of bugs. Will be fixed shortly ;) !

Kind regards

Alessandro Mercier http://codedead.com/

Van: Andreas Korb [mailto:notifications@github.com] Verzonden: maandag 18 januari 2016 18:31 Aan: CodeDead/DeadLock DeadLock@noreply.github.com CC: CodeDead admin@codedead.com Onderwerp: Re: [DeadLock] Some refactoring (#1)

I'm glad you like it :) Did you actually intend to revert the 'async' changes with your latest commit? I'm a little bit confused now.

— Reply to this email directly or view it on GitHub https://github.com/CodeDead/DeadLock/pull/1#issuecomment-172599671 . https://github.com/notifications/beacon/APid0jA23Po6dOee6yw7srKaN9tPh1gxks5pbRjigaJpZM4HGHUw.gif

CodeDead commented 8 years ago

The issue has been fixed ;).