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,7 +41,8 @@ class ProfilesApplet(Applet):
|
|||||||
self._selectedProfile = str(self.manager.GetSelectedProfile())
|
self._selectedProfile = str(self.manager.GetSelectedProfile())
|
||||||
|
|
||||||
def _updateListView(self):
|
def _updateListView(self):
|
||||||
self._lv.markedIndex = self._profiles.index(self._selectedProfile)
|
if self._selectedProfile:
|
||||||
|
self._lv.markedIndex = self._profiles.index(self._selectedProfile)
|
||||||
self._lv.model = self._profiles
|
self._lv.model = self._profiles
|
||||||
self._lv.update()
|
self._lv.update()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user