Changed saved window layouts to be accessable from any project. added apply and delete buttons as well.

This commit is contained in:
Chandler Cox
2022-12-08 20:40:21 -06:00
parent 5a50656249
commit 2e055d1909
2 changed files with 11 additions and 5 deletions

View File

@@ -555,8 +555,8 @@ namespace FlaxEditor.Modules
}
base.OnSubmit();
var path = StringUtils.CombinePaths(Globals.ProjectCacheFolder, "Layout_" + name + ".xml");
var path = StringUtils.CombinePaths(Editor.LocalCachePath, "LayoutsCache", "Layout_" + name + ".xml");
Editor.Instance.Windows.SaveLayout(path);
}
}