Skip to content

Commit 1f47684

Browse files
Swapped project folder shortcut to use the repo folder in GitData
Also made sure the project folder shortcut uses the ProjectFolder value.
1 parent 637882a commit 1f47684

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

SCG.MarkdownConverter/SCG.MarkdownConverter.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
<Compile Include="Properties\AssemblyInfo.cs" />
9797
</ItemGroup>
9898
<ItemGroup>
99-
<None Include="app.config" />
10099
<None Include="packages.config" />
101100
</ItemGroup>
102101
<ItemGroup>

SCG.Modules/DOS2DE/Core/DOS2DECommands.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ public static void OpenGitFolder(ModProjectData modProjectData)
624624
{
625625
if (MainData != null)
626626
{
627-
string directory = Path.Combine(Path.GetFullPath(MainData.Settings.GitRootDirectory), modProjectData.ProjectName);
628-
if (Directory.Exists(directory))
627+
string directory = modProjectData.GitData?.RepositoryPath;
628+
if (!String.IsNullOrEmpty(directory) && Directory.Exists(directory))
629629
{
630630
Process.Start(directory);
631631
}
@@ -722,7 +722,7 @@ public static void OpenProjectFolder(ModProjectData modProjectData)
722722
if (MainData != null)
723723
{
724724
string startPath = Path.Combine(MainData.Settings.DOS2DEDataDirectory, "Projects");
725-
string directory = Path.Combine(Path.GetFullPath(startPath), modProjectData.ProjectName);
725+
string directory = Path.Combine(Path.GetFullPath(startPath), modProjectData.ProjectFolder);
726726
if(!Directory.Exists(directory))
727727
{
728728
directory = Path.Combine(Path.GetFullPath(startPath), modProjectData.ModuleInfo.Folder); // Imported projects

0 commit comments

Comments
 (0)