Преглед на файлове

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