update: updated ticket page routing

This commit is contained in:
JOhn 2026-07-03 13:40:21 -04:00
parent 7cedecd281
commit 8b17b74e56
4 changed files with 3 additions and 10 deletions

View file

@ -219,7 +219,7 @@ class MenuPage(Page):
protocol = profile.connection.code protocol = profile.connection.code
print(f"DEBUG: the type is = {type(profile.location)}, value = {profile.location}") # print(f"DEBUG: the type is = {type(profile.location)}, value = {profile.location}")
if isinstance(profile.location, dict): if isinstance(profile.location, dict):
# Fake/missing data — show placeholders from data, # Fake/missing data — show placeholders from data,

View file

@ -2,7 +2,7 @@ import os
from PyQt6.QtWidgets import QApplication, QLabel, QLineEdit, QPushButton from PyQt6.QtWidgets import QApplication, QLabel, QLineEdit, QPushButton
from PyQt6.QtGui import QIcon, QPixmap from PyQt6.QtGui import QIcon, QPixmap
from PyQt6.QtCore import QSize, QTimer, QThread from PyQt6.QtCore import QSize, QTimer
from PyQt6 import QtCore from PyQt6 import QtCore
from gui.v2.ui.pages.Page import Page from gui.v2.ui.pages.Page import Page
@ -340,14 +340,6 @@ class PaymentDetailsPage(Page):
self._populate_ticket_fields(invoice) self._populate_ticket_fields(invoice)
if self.ticket_poll_timer.isActive(): if self.ticket_poll_timer.isActive():
self.ticket_poll_timer.stop() self.ticket_poll_timer.stop()
### NEW THREAD SAFETY DEBUG SECTION ####
# print(f"Timer starting from thread: {QThread.currentThread()}")
# print(f"Main thread is: {QApplication.instance().thread()}")
# if QThread.currentThread() != QApplication.instance().thread():
# print("⚠️ WARNING: Not on main thread!")
###############################################################
self.ticket_poll_timer.start(3000) self.ticket_poll_timer.start(3000)
self.update_status.update_status('Awaiting ticket payment...') self.update_status.update_status('Awaiting ticket payment...')

View file

@ -109,6 +109,7 @@ class TicketOrBillingChoicePage(Page):
if menu_page: if menu_page:
self.update_status.update_status(f"Using ticket #{which_ticket}...") self.update_status.update_status(f"Using ticket #{which_ticket}...")
menu_page.enabling_profile(profile_data) menu_page.enabling_profile(profile_data)
self.custom_window.navigator.navigate("menu")
def on_use_billing(self): def on_use_billing(self):
self.custom_window.navigator.navigate("id") self.custom_window.navigator.navigate("id")