1
0
mirror of synced 2025-01-19 09:17:30 +01:00

Fix applying bfres settings from the context menu

This commit is contained in:
KillzXGaming 2019-09-06 18:04:52 -04:00
parent 245a503a18
commit 62005511e8

View File

@ -33,7 +33,10 @@ namespace FirstPlugin.NodeWrappers
List<ToolStripItem> Items = new List<ToolStripItem>();
Items.AddRange(base.GetContextMenuItems());
SettingsToolStrip = new ToolStripMenuItem("Settings", null);
SettingsToolStrip.DropDownItems.Add(new ToolStripMenuItem("Remove Unused Textures on Save", null, SettingBooleanAction));
SettingsToolStrip.DropDownItems.Add(new ToolStripMenuItem("Remove Unused Textures on Save", null, SettingBooleanAction)
{
Checked = SettingRemoveUnusedTextures,
});
Items.Add(SettingsToolStrip);
return Items.ToArray();
}
@ -43,9 +46,9 @@ namespace FirstPlugin.NodeWrappers
if (sender is ToolStripMenuItem)
{
if (((ToolStripMenuItem)sender).Checked)
((ToolStripMenuItem)sender).Checked = false;
SettingRemoveUnusedTextures = false;
else
((ToolStripMenuItem)sender).Checked = true;
SettingRemoveUnusedTextures = true;
}
}