mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 00:14:09 -04:00
Prevent a race condition in the profile switcher
This commit is contained in:
parent
33c83d6191
commit
38f9154756
@ -41,6 +41,7 @@ class ProfilesApplet(Applet):
|
||||
self._selectedProfile = str(self.manager.GetSelectedProfile())
|
||||
|
||||
def _updateListView(self):
|
||||
if self._selectedProfile:
|
||||
self._lv.markedIndex = self._profiles.index(self._selectedProfile)
|
||||
self._lv.model = self._profiles
|
||||
self._lv.update()
|
||||
|
Loading…
Reference in New Issue
Block a user