Skip to content

Commit 9dabe97

Browse files
solve merge conflict
1 parent 3e390b8 commit 9dabe97

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/Menu/Options.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,14 @@ 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 (ContentFolder.isWrongPath(current.Path, catalog))
747+
if (current.Path.ToLower().Contains(ApplicationInfo.ProcessDirectory.ToLower()))
748748
{
749+
// Block added because a succesful Update operation will empty the Open Rails folder and lose any content stored within it.
750+
MessageBox.Show(catalog.GetString
751+
($"Cannot use content from any folder which lies inside the Open Rails folder {ApplicationInfo.ProcessDirectory}\n\n")
752+
, "Invalid content location"
753+
, MessageBoxButtons.OK
754+
, MessageBoxIcon.Error);
749755
DeleteContent();
750756
return;
751757
}

0 commit comments

Comments
 (0)