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,7 +79,15 @@ public class GauntletScreen extends LaunchScreen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lstGauntlets.setGauntlets(data);
|
lstGauntlets.setGauntlets(data);
|
||||||
lstGauntlets.setSelectedIndex(0);
|
|
||||||
|
if (lstGauntlets.isEmpty()) {
|
||||||
|
btnRenameGauntlet.setEnabled(false);
|
||||||
|
btnDeleteGauntlet.setEnabled(false);
|
||||||
|
btnStart.setEnabled(false);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
lstGauntlets.setSelectedIndex(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user