浏览代码

fixed MainWindow.Current null

flabbet 3 年之前
父节点
当前提交
2896b95911
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      PixiEditor/Views/MainWindow.xaml.cs

+ 2 - 0
PixiEditor/Views/MainWindow.xaml.cs

@@ -66,6 +66,8 @@ namespace PixiEditor
                 }
                 }
             });
             });
 
 
+            Current = this;
+
             OnReleaseBuild();
             OnReleaseBuild();
         }
         }