1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Disable edit menu if texture does not support edits.

This commit is contained in:
KillzXGaming 2020-05-23 14:30:33 -04:00
parent 08ac7084e7
commit e499369b3c

View File

@ -311,6 +311,7 @@ namespace Toolbox.Library.Forms
public void LoadImage(STGenericTexture texture, int arrayLevel = 0)
{
editBtn.Enabled = false;
editToolStripMenuItem.Enabled = false;
//Disable the file watcher when an image is switched
FileWatcher.EnableRaisingEvents = false;
@ -336,6 +337,7 @@ namespace Toolbox.Library.Forms
if (ActiveTexture.CanEdit)
{
editBtn.Enabled = true;
editToolStripMenuItem.Enabled = true;
editBtn.BackgroundImage = Properties.Resources.Edit;
}
else