Fixed an error popup message when trying to fetch skills with no character selected in character editor - api tab (by default select the first character)
This commit is contained in:
@@ -612,12 +612,17 @@ class APIView (wx.Panel):
|
||||
for charName in list:
|
||||
self.charList.InsertStringItem(sys.maxint, charName)
|
||||
|
||||
self.charList.SetItemState(0,wx.LIST_STATE_SELECTED, wx.LIST_STATE_SELECTED)
|
||||
self.charList.SetColumnWidth(0, wx.LIST_AUTOSIZE_USEHEADER)
|
||||
self.charList.Show()
|
||||
|
||||
self.btnFetchCharList.Hide()
|
||||
self.btnFetchSkills.Show()
|
||||
|
||||
self.Layout()
|
||||
|
||||
self.charList.SetFocus()
|
||||
|
||||
def fetchSkills(self, event):
|
||||
item = self.charList.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED)
|
||||
charName = self.charList.GetItemText(item)
|
||||
|
||||
Reference in New Issue
Block a user