Skip to content

Commit 872f231

Browse files
author
SlavaRa
committed
Safe delete old project file
1 parent 72676c7 commit 872f231

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

External/Plugins/ProjectManager/PluginUI.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,14 @@ private void tree_AfterLabelEdit(Object sender, NodeLabelEditEventArgs e)
239239
if (Rename(oldName, newName))
240240
{
241241
PluginBase.MainForm.OpenEditableDocument(newName);
242-
File.Delete(oldName);
242+
try
243+
{
244+
File.Delete(oldName);
245+
}
246+
catch (Exception)
247+
{
248+
// ignored
249+
}
243250
}
244251
else e.CancelEdit = true;
245252
}

0 commit comments

Comments
 (0)