Skip to content

Commit

Permalink
Moving AddEventLHandlers after creating the ui prevents second erro…
Browse files Browse the repository at this point in the history
…r. Thanks Héctor!
  • Loading branch information
skial committed Jan 20, 2016
1 parent c90962f commit 028ae2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manual.compile.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@ECHO off
cd bin/no_compilation/sampleplugin/src
C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /target:library /out:../bin/no_compilation.dll /nologo /reference:"C:\Program Files (x86)\FlashDevelop\PluginCore.dll" /platform:x86 /optimize+ /unsafe /recurse:*.cs
C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /target:library /out:../bin/no_compilation.dll /nologo /reference:"C:\Program Files (x86)\FlashDevelop\PluginCore.dll" /platform:x86 /optimize+ /unsafe /debug /recurse:*.cs
4 changes: 2 additions & 2 deletions src/sampleplugin/PluginMain.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import weifenluo.winformsui.docking.DockContent;
* ...
* @author Skial Bainn
*/
class PluginMain implements IPlugin {
@:nativeGen class PluginMain implements IPlugin {

private var pluginName:String = 'SamplePlugin';
private var pluginGuid:String = '6391a394-7c82-4b8b-9474-92c906297bd3';
Expand Down Expand Up @@ -62,10 +62,10 @@ class PluginMain implements IPlugin {
public function Initialize():Void {
this.InitBasics();
this.LoadSettings();
this.AddEventHandlers();
this.InitLocalization();
this.CreatePluginPanel();
this.CreateMenuItem();
this.AddEventHandlers();
}

public function Dispose():Void {
Expand Down

0 comments on commit 028ae2d

Please sign in to comment.