File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments