Skip to content

Commit

Permalink
MP1-5181: MPE: Fix inital platform type for new extension project
Browse files Browse the repository at this point in the history
  • Loading branch information
epbk committed Nov 10, 2023
1 parent 9d0b8b0 commit 9be198d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mediaportal/MPE/MpeMaker/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ private void OpenNewFileSelector()
{
case MpeStartupResult.NewFile:
Package = GetNewProject();

//Set initial platform compatibility to AnyCPU
if (this.Package != null)
this.Package.GeneralInfo.PlatformCompatibility = PlatformCompatibilityEnum.AnyCPU;

break;

case MpeStartupResult.OpenFile:
Expand All @@ -426,10 +431,6 @@ private void OpenNewFileSelector()
}
}

//Set initial platform compatibility to AnyCPU
if (this.Package != null)
this.Package.GeneralInfo.PlatformCompatibility = PlatformCompatibilityEnum.AnyCPU;

Show();
BringToFront();
}
Expand Down

0 comments on commit 9be198d

Please sign in to comment.