mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Update enabled state of remove button when abilities removed
This commit is contained in:
@@ -58,6 +58,7 @@ public class VAutoYields extends FDialog {
|
||||
if (selected != null) {
|
||||
lstAutoYields.removeItem(selected);
|
||||
player.getController().setShouldAutoYield(selected, false);
|
||||
btnRemove.setEnabled(lstAutoYields.getCount() > 0);
|
||||
lstAutoYields.cleanUpSelections();
|
||||
VAutoYields.this.revalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user