bergerjac / gitextensions

This fork of GitExtensions is primarily focused on creating an interactive view of git's common objects.
http://code.google.com/p/gitextensions
GNU General Public License v3.0
1 stars 0 forks source link

Multiple reload #15

Closed jbialobr closed 11 years ago

jbialobr commented 11 years ago

If you put a breakpoint you will see that reload is called two times at startup.

I think it would be better to react on GitUICommandsChanged event. Like it was in my branch.

    void UICommandsSource_GitUICommandsChanged(IGitUICommandsSource sender, GitUICommands oldCommands)
    {
        RepoChanged();
    }
bergerjac commented 11 years ago

I think I've remedied this issue here.

jbialobr commented 11 years ago

UICommandsSource can be assigned no more that once, so https://github.com/bergerjac/gitextensions/commit/3991a3610791b475eb5ec11ebc763257ff3425c1#L0L1801 should be enough.