Ver Fonte

UI: Save after creating default scene

When initializing with a default scene, save the data to ensure a file
is actually present when needed (such as for scene collections which may
need the file)
jp9000 há 10 anos atrás
pai
commit
1d3251a993
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      obs/window-basic-main.cpp

+ 1 - 0
obs/window-basic-main.cpp

@@ -414,6 +414,7 @@ void OBSBasic::Load(const char *file)
 	BPtr<char> jsonData = os_quick_read_utf8_file(file);
 	if (!jsonData) {
 		CreateDefaultScene();
+		SaveProject();
 		return;
 	}