浏览代码

Fix Mpn Attach dropdown not updating when ready

Need to set MpnAttachInitialized before emitting event.
habeebweeb 4 年之前
父节点
当前提交
e406b93dfc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Constants.cs

+ 2 - 2
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Constants.cs

@@ -715,8 +715,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 }
             }
 
-            OnMenuFilesChange(MenuFilesEventArgs.EventType.HandItems);
             HandItemsInitialized = true;
+            OnMenuFilesChange(MenuFilesEventArgs.EventType.HandItems);
         }
 
         private static void InitializeMpnAttachProps()
@@ -750,8 +750,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 }
             }
 
-            OnMenuFilesChange(MenuFilesEventArgs.EventType.MpnAttach);
             MpnAttachInitialized = true;
+            OnMenuFilesChange(MenuFilesEventArgs.EventType.MpnAttach);
         }
 
         private static void InitializeMyRoomProps()