def on_disconnect(self, *args): api.disconnect() self.toggle_connection(False) self.connect_link.show() synchronize_menuitem = self.builder.get_object('synchronize_menuitem') synchronize_menuitem.set_sensitive(False)
def on_disconnect(self, *_args): """Callback from user disconnect""" dlg = dialogs.QuestionDialog({ "question": _("Do you want to log out from Lutris?"), "title": _("Log out?"), }) if dlg.result != Gtk.ResponseType.YES: return api.disconnect()
def on_disconnect(self, *_args): """Callback from user disconnect""" dlg = dialogs.QuestionDialog({ "question": "Do you want to log out from Lutris?", "title": "Log out?", }) if dlg.result != Gtk.ResponseType.YES: return api.disconnect() self.toggle_connection(False) self.actions["synchronize"].props.enabled = False
def on_disconnect(self, *_args): """Callback from user disconnect""" dlg = dialogs.QuestionDialog( { "question": "Do you want to log out from Lutris?", "title": "Log out?", } ) if dlg.result != Gtk.ResponseType.YES: return api.disconnect() self.toggle_connection(False) self.actions["synchronize"].props.enabled = False
def on_disconnect(self, *args): api.disconnect() self.toggle_connection(False)
def on_disconnect(self, *_args): """Callback from user disconnect""" api.disconnect() self.toggle_connection(False) self.connect_link.show() self.actions['synchronize'].props.enabled = False
def on_disconnect(self, *args): api.disconnect() self.toggle_connection(False) self.connect_link.show() self.actions['synchronize'].props.enabled = False