Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5057 closed defect (fixed)

Load / Delete buttons are not disabled on load panel when there is no any saved game

Reported by: ztamas Owned by: Vladislav Belov
Priority: Should Have Milestone: Alpha 23
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D1347

Description

On the load panel, load / delete buttons should be enabled only when a gamesave is selected. When you open the load panel the first entry is preselected by default, but if there is no saved games, then nothing is selected, but the load / delete buttons are still enabled. If we push load button in this case for example we get a javascript error (see screenshot).

When you remove all saved games while the dialog is opened, disabling those two buttons works. The issue comes up only when the load panel is opened without saved games.

Attachments (1)

load_button_when_nosave.png (811.6 KB ) - added by ztamas 6 years ago.
Screenshot about the javascript error

Download all attachments as: .zip

Change History (4)

by ztamas, 6 years ago

Attachment: load_button_when_nosave.png added

Screenshot about the javascript error

comment:1 by ztamas, 6 years ago

Milestone: BacklogWork In Progress
Patch: Phab:D1347

comment:2 by Vladislav Belov, 6 years ago

Owner: set to Vladislav Belov
Resolution: fixed
Status: newclosed

In 21409:

Disables load/delete buttons for an empty savegames list. Fixes #5057.

Patch By: ztamas
Reviewed By: vladislavbelov
Trac Tickets: #5057
Differential Revision: https://code.wildfiregames.com/D1347

comment:3 by Itms, 6 years ago

Milestone: Work In ProgressAlpha 23
Note: See TracTickets for help on using tickets.