- Open load dialog with some saved games: First item is selected and the two buttons are enabled.
- Open load dialog without any saved games: The two buttons are disabled.
- Open load dialog with some saved games and remove all items from the list: the two buttons become disabled.
Details
Details
- Reviewers
vladislavbelov - Commits
- rP21409: Disables load/delete buttons for an empty savegames list. Fixes #5057.
- Trac Tickets
- #5057
Diff Detail
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
binaries/data/mods/public/gui/loadgame/load.js | ||
---|---|---|
93 ↗ | (On Diff #5978) | This duplicates the code, because we already have a logic to disable these buttons in the selectionChanged() function. So I suggest to just call the selectionChanged(). |
Comment Actions
Use the selectionChanged method as suggested. It does the same thing, additionally sets validGame / invalidGame status.