From db1f903b0ba098cb855adcc804c34168ee868824 Mon Sep 17 00:00:00 2001 From: SimplifiedPrivacy Date: Sat, 15 Aug 2026 14:06:28 -0400 Subject: [PATCH] Including the profile when using tickets (use_ticket function), so core can save which profile has which ticket for future features such as respawn. --- gui/v2/ui/pages/ticket_or_billing_choice_page.py | 1 + gui/v2/workers/ticketing_worker_thread.py | 9 +++++---- gui/v2/workers/worker.py | 8 +++++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gui/v2/ui/pages/ticket_or_billing_choice_page.py b/gui/v2/ui/pages/ticket_or_billing_choice_page.py index 08c871a..d32a648 100755 --- a/gui/v2/ui/pages/ticket_or_billing_choice_page.py +++ b/gui/v2/ui/pages/ticket_or_billing_choice_page.py @@ -104,6 +104,7 @@ class TicketOrBillingChoicePage(Page): 'id': int(profile_id), 'use_ticket': which_ticket, 'ticket_location': candidates[0], + 'profile': profile } menu_page = self.custom_window.navigator.get_cached("menu") if menu_page: diff --git a/gui/v2/workers/ticketing_worker_thread.py b/gui/v2/workers/ticketing_worker_thread.py index 524ee6f..1ea0d74 100755 --- a/gui/v2/workers/ticketing_worker_thread.py +++ b/gui/v2/workers/ticketing_worker_thread.py @@ -73,10 +73,11 @@ class TicketingWorkerThread(QThread): self.saved_blind_prep_done.emit(result) elif self.action == 'USE_TICKET': result = use_ticket( - self.params['which_ticket'], - self.params['which_location'], - ticket_observer, - connection_observer, + which_ticket=self.params['which_ticket'], + which_location=self.params['which_location'], + ticket_observer=ticket_observer, + connection_observer=connection_observer, + profile=self.params['profile'] ) self.use_done.emit(result) except Exception as e: diff --git a/gui/v2/workers/worker.py b/gui/v2/workers/worker.py index 7ded10e..a31ec3a 100755 --- a/gui/v2/workers/worker.py +++ b/gui/v2/workers/worker.py @@ -215,7 +215,13 @@ class Worker(QObject): last_msg = None for cand in candidates: try: - outcome = use_ticket(which_ticket, cand, ticket_observer, connection_observer) + outcome = use_ticket( + which_ticket=which_ticket, + which_location=cand, + ticket_observer=ticket_observer, + connection_observer=connection_observer, + profile=self.profile + ) except Exception as e: last_msg = str(e) continue