Procházet zdrojové kódy

UI: Also defer first scene collection load

Fixes a bug where it would try to save the scene before the scene had
been loaded on macOS.
jp9000 před 7 roky
rodič
revize
e9d22bdbd6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      UI/window-basic-main.cpp

+ 1 - 1
UI/window-basic-main.cpp

@@ -1470,7 +1470,6 @@ void OBSBasic::OBSInit()
 	}
 	}
 #endif
 #endif
 
 
-	RefreshSceneCollections();
 	RefreshProfiles();
 	RefreshProfiles();
 	disableSaving--;
 	disableSaving--;
 
 
@@ -1618,6 +1617,7 @@ void OBSBasic::DeferredLoad(const QString &file, int requeueCount)
 	}
 	}
 
 
 	Load(QT_TO_UTF8(file));
 	Load(QT_TO_UTF8(file));
+	RefreshSceneCollections();
 }
 }
 
 
 void OBSBasic::UpdateMultiviewProjectorMenu()
 void OBSBasic::UpdateMultiviewProjectorMenu()