NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Improve `TrayManu.Dispose()` method implementation #293

Closed jozefizso closed 4 years ago

jozefizso commented 4 years ago

The TrayManu.Dispose() method is implemented with incorrect disposal logic.

The check if (IsDisposed) should be reversed to prevent execution of dispose method multiple times.

https://github.com/NetOfficeFw/NetOffice/blob/3b56a7420dab2d1a18d4b60ae8e12e728423cf1b/Source/Office/Tools/Contribution/TrayMenuUtils/TrayMenu.cs#L885-L896