forked from Support/sp-hydra-veil-gui
update: updated ticket page routing
This commit is contained in:
parent
7cedecd281
commit
8b17b74e56
4 changed files with 3 additions and 10 deletions
Binary file not shown.
|
|
@ -219,7 +219,7 @@ class MenuPage(Page):
|
|||
|
||||
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):
|
||||
# Fake/missing data — show placeholders from data,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
|
||||
from PyQt6.QtWidgets import QApplication, QLabel, QLineEdit, QPushButton
|
||||
from PyQt6.QtGui import QIcon, QPixmap
|
||||
from PyQt6.QtCore import QSize, QTimer, QThread
|
||||
from PyQt6.QtCore import QSize, QTimer
|
||||
from PyQt6 import QtCore
|
||||
|
||||
from gui.v2.ui.pages.Page import Page
|
||||
|
|
@ -340,14 +340,6 @@ class PaymentDetailsPage(Page):
|
|||
self._populate_ticket_fields(invoice)
|
||||
if self.ticket_poll_timer.isActive():
|
||||
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.update_status.update_status('Awaiting ticket payment...')
|
||||
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ class TicketOrBillingChoicePage(Page):
|
|||
if menu_page:
|
||||
self.update_status.update_status(f"Using ticket #{which_ticket}...")
|
||||
menu_page.enabling_profile(profile_data)
|
||||
self.custom_window.navigator.navigate("menu")
|
||||
|
||||
def on_use_billing(self):
|
||||
self.custom_window.navigator.navigate("id")
|
||||
|
|
|
|||
Loading…
Reference in a new issue