Ver código fonte

Fix Mpn Attach dropdown not updating when ready

Need to set MpnAttachInitialized before emitting event.
habeebweeb 4 anos atrás
pai
commit
e406b93dfc

+ 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()