Issue#1181 fix again for 7.5.0

https://github.com/FoldingAtHome/fah-issues/issues/1181
The additional select call in code must only be called initially when the selected slot changed - not always on update ui.
This commit is contained in:
informatorius 2018-05-10 16:08:25 +02:00 committed by GitHub
parent e23e6182de
commit 17ae5b8fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -432,13 +432,14 @@ class ClientConfig:
# Selected the first item if nothing is selected
if selected_row is None:
selected_row = app.slot_status_list.get_iter_first()
app.slot_status_tree.get_selection().select_iter(selected_row)
self.select_slot(app)
if log_filter_row is None:
log_filter_row = app.slot_status_list.get_iter_first()
# Restore selections
if selected_row is not None:
app.slot_status_tree.get_selection().select_iter(selected_row)
self.select_slot(app)
if log_filter_row is not None:
app.log_slot.set_active_iter(log_filter_row)