Re: Radnen's Sphere Studio v1.1.5.0
Reply #145 –
Haha, I did a trial run with the VS2012 blue theme, ended up going back to default gray one. Too much color drew my eyes away from the code.
I guess that's the reason they went with those flat icons, too... yeah, it's harder to find stuff initially, but once you know where the necessary commands are, the lack of distractions is refreshing.
But that's odd with the fonts, so if you change the font in the Scintilla control programmatically, it renders the text differently than if the same font were used by default? Seems like weird behavior. And yeah, I noticed that about the plugin registration. I bet I know what it is: The plugin isn't actually being unloaded because the garbage collector still sees references to it--it still has the editor events hooked. Let me try something...
Edit: Yep, that fixed it. You have to unregister your event handlers in the Destroy() method, otherwise the previously-selected plugin still gets TryEditFile first, and once that's matched everybody else ignores it):
host.TryEditFile -= host_TryEditFile;
I sent a pull request.