mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Disable buttons if no gauntlets exist
This commit is contained in:
@@ -79,8 +79,16 @@ public class GauntletScreen extends LaunchScreen {
|
||||
}
|
||||
|
||||
lstGauntlets.setGauntlets(data);
|
||||
|
||||
if (lstGauntlets.isEmpty()) {
|
||||
btnRenameGauntlet.setEnabled(false);
|
||||
btnDeleteGauntlet.setEnabled(false);
|
||||
btnStart.setEnabled(false);
|
||||
}
|
||||
else {
|
||||
lstGauntlets.setSelectedIndex(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doLayoutAboveBtnStart(float startY, float width, float height) {
|
||||
|
||||
Reference in New Issue
Block a user