Explorar o código

Fixed Incorrect flowcoordinator type being passed

Eris %!s(int64=4) %!d(string=hai) anos
pai
achega
26d396ad1d

+ 3 - 3
SongBrowserPlugin/UI/Browser/BeatSaberUIController.cs

@@ -12,7 +12,7 @@ namespace SongBrowser.DataAccess
     public class BeatSaberUIController
     {
         // Beat Saber UI Elements
-        public FlowCoordinator LevelSelectionFlowCoordinator;
+        public LevelSelectionFlowCoordinator LevelSelectionFlowCoordinator;
         public LevelSelectionNavigationController LevelSelectionNavigationController;
 
         public LevelFilteringNavigationController LevelFilteringNavigationController;
@@ -52,14 +52,14 @@ namespace SongBrowser.DataAccess
         /// Constructor.  Acquire all necessary BeatSaberUi elements.
         /// </summary>
         /// <param name="flowCoordinator"></param>
-        public BeatSaberUIController(FlowCoordinator flowCoordinator)
+        public BeatSaberUIController(LevelSelectionFlowCoordinator flowCoordinator)
         {
             Logger.Debug("Collecting all BeatSaberUI Elements...");
 
             LevelSelectionFlowCoordinator = flowCoordinator;
 
             // gather flow coordinator elements
-            LevelSelectionNavigationController = LevelSelectionFlowCoordinator.GetField<LevelSelectionNavigationController, FlowCoordinator>("levelSelectionNavigationController");
+            LevelSelectionNavigationController = LevelSelectionFlowCoordinator.GetField<LevelSelectionNavigationController, LevelSelectionFlowCoordinator>("levelSelectionNavigationController");
             Logger.Debug("Acquired LevelSelectionNavigationController [{0}]", LevelSelectionNavigationController.GetInstanceID());
 
             LevelFilteringNavigationController = LevelSelectionNavigationController.GetField<LevelFilteringNavigationController, LevelSelectionNavigationController>("_levelFilteringNavigationController");

+ 1 - 1
SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

@@ -101,7 +101,7 @@ namespace SongBrowser.UI
             Logger.Trace("CreateUI()");
 
             // Determine the flow controller to use
-            FlowCoordinator flowCoordinator;
+            LevelSelectionFlowCoordinator flowCoordinator;
             if (mode == MainMenuViewController.MenuButton.SoloFreePlay)
             {
                 Logger.Debug("Entering SOLO mode...");