Set focus to search bar when opening fit browser lite
This commit is contained in:
@@ -10,3 +10,15 @@ class FitListView(d.Display):
|
||||
|
||||
def __init__(self, parent):
|
||||
super().__init__(parent, style=wx.BORDER_NONE)
|
||||
self.fits = []
|
||||
|
||||
def updateView(self):
|
||||
self.update(self.fits)
|
||||
|
||||
def refreshView(self):
|
||||
self.refresh(self.fits)
|
||||
|
||||
def updateData(self, fits):
|
||||
fits.sort(key=lambda f: (f.shipName, f.name))
|
||||
self.fits = fits
|
||||
self.updateView()
|
||||
|
||||
Reference in New Issue
Block a user