Skip to content

Commit c06f5d0

Browse files
Undo previous commit
1 parent 7b5496d commit c06f5d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Menu/Options.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,11 +744,11 @@ private void textBoxContentName_TextChanged(object sender, EventArgs e)
744744
var current = bindingSourceContent.Current as ContentFolder;
745745
if (current != null && current.Name != textBoxContentName.Text)
746746
{
747-
if (current.Path.ToLower().Contains(ApplicationInfo.ProcessDirectory.ToLower()))
747+
if (current.Path.ToLower().Contains(Application.StartupPath.ToLower()))
748748
{
749749
// Block added because a succesful Update operation will empty the Open Rails folder and lose any content stored within it.
750750
MessageBox.Show(catalog.GetString
751-
($"Cannot use content from any folder which lies inside the Open Rails folder {ApplicationInfo.ProcessDirectory}\n\n")
751+
($"Cannot use content from any folder which lies inside the Open Rails folder {Application.StartupPath}\n\n")
752752
, "Invalid content location"
753753
, MessageBoxButtons.OK
754754
, MessageBoxIcon.Error);

0 commit comments

Comments
 (0)