From 191896600eda4210302561e8d443ab446752058b Mon Sep 17 00:00:00 2001 From: glopesdev Date: Tue, 3 Sep 2024 15:18:21 +0100 Subject: [PATCH] Remove leading dot from layout file name --- Bonsai.Editor/Project.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bonsai.Editor/Project.cs b/Bonsai.Editor/Project.cs index 90690d8d..44624b4a 100644 --- a/Bonsai.Editor/Project.cs +++ b/Bonsai.Editor/Project.cs @@ -11,7 +11,7 @@ static class Project { const string DefaultWorkflowNamespace = "Unspecified"; internal const string BonsaiExtension = ".bonsai"; - internal const string LayoutExtension = ".layout"; + internal const string LayoutFileName = "layout"; internal const string ExtensionsDirectory = "Extensions"; internal const string DefinitionsDirectory = "Definitions"; @@ -49,13 +49,13 @@ public static string GetWorkflowSettingsDirectory(string fileName) public static string GetLayoutConfigPath(string fileName) { - return Path.Combine(GetWorkflowSettingsDirectory(fileName), LayoutExtension); + return Path.Combine(GetWorkflowSettingsDirectory(fileName), LayoutFileName); } [Obsolete] internal static string GetLegacyLayoutConfigPath(string fileName) { - return Path.ChangeExtension(fileName, Path.GetExtension(fileName) + LayoutExtension); + return Path.ChangeExtension(fileName, Path.GetExtension(fileName) + "." + LayoutFileName); } internal static string GetDefinitionsTempPath()