Avoid unloading nodes if dialog is set to no
This commit is contained in:
parent
500cb7b9a5
commit
7bbd06701f
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ using Switch_Toolbox.Library;
|
||||
using Switch_Toolbox.Library.IO;
|
||||
using Switch_Toolbox.Library.Forms;
|
||||
|
||||
namespace FirstPlugin.Old
|
||||
namespace FirstPlugin
|
||||
{
|
||||
public class SARC : TreeNodeFile, IFileFormat
|
||||
{
|
||||
|
@ -115,7 +115,6 @@ namespace Bfres.Structs
|
||||
public override void Delete()
|
||||
{
|
||||
DialogResult dialogResult = MessageBox.Show("Are you sure you want to remove this model? This cannot be undone!", "", MessageBoxButtons.YesNo);
|
||||
|
||||
if (dialogResult == DialogResult.Yes)
|
||||
{
|
||||
Skeleton.bones.Clear();
|
||||
@ -130,6 +129,8 @@ namespace Bfres.Structs
|
||||
((BFRESGroupNode)Parent).RemoveChild(this);
|
||||
|
||||
LibraryGUI.Instance.UpdateViewport();
|
||||
|
||||
Unload();
|
||||
}
|
||||
}
|
||||
|
||||
|
Binary file not shown.
@ -196,7 +196,7 @@ namespace Switch_Toolbox.Library.NodeWrappers
|
||||
Replace(ofd.FileName);
|
||||
}
|
||||
}
|
||||
protected void DeleteAction(object sender, EventArgs e) { Delete(); Unload(); }
|
||||
protected void DeleteAction(object sender, EventArgs e) { Delete();}
|
||||
protected void RenameAction(object sender, EventArgs e) { Rename(); }
|
||||
protected void SortAction(object sender, EventArgs e) { Sort(); }
|
||||
protected void ClearAction(object sender, EventArgs e) { Clear(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user