Skip to content

Commit

Permalink
When you click Refresh on a source but are no longer connected, let's…
Browse files Browse the repository at this point in the history
… log you out and back in; this will ask for new credentials and then reload anyway.

Should help with #5406
  • Loading branch information
danieljohnson2 committed May 4, 2024
1 parent 59ed033 commit f3218bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lutris/gui/widgets/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def on_refresh_clicked(self, button):
button.set_sensitive(False)
if self.service.online and not self.service.is_connected():
self.service.logout()
self.service.login(parent=self.get_toplevel()) # login will trigger reload if successful
return
self.service.start_reload(self.service_reloaded_cb)

Expand Down

0 comments on commit f3218bd

Please sign in to comment.