Skip to content

Commit

Permalink
Remove leading dot from layout file name
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Sep 3, 2024
1 parent e456ef4 commit 1918966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Bonsai.Editor/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1918966

Please sign in to comment.