Преглед изворни кода

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