def on_button_cancel(self, widget): question = _("Are you sure you want to cancel downloading {}?").format( self.game.name) if self.parent.parent.show_question(question): self.prevent_resume_on_startup() DownloadManager.cancel_download(self.download)