Skip to content

Commit

Permalink
fix: Update tabbedterminal.py for PyQT issues in CI take2
Browse files Browse the repository at this point in the history
  • Loading branch information
meramsey committed Feb 6, 2022
1 parent 76400f2 commit c0fe0e5
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/wizardwebssh/tabbedterminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from PyQt6.QtWidgets import QTabWidget, QApplication, QInputDialog, QFileDialog, QPushButton, QStyle
except Exception as e:
print(f"Exception: {e}")

# if platform.system() == "Linux":
# try:
# import ctypes
Expand All @@ -27,16 +28,21 @@

free_port = "8889"

settings = QtCore.QSettings("WizardAssistant", "WizardAssistantDesktop")
try:

if settings.contains("wizardwebsshport"):
# there is the key in QSettings
# print('Checking for wizardwebsshport in config')
wizardwebsshport = settings.value("wizardwebsshport")
# print('Found wizardwebsshport port in config:' + wizardwebsshport)
free_port = wizardwebsshport
else:
print("wizardwebsshport not found in config")
settings = QtCore.QSettings("WizardAssistant", "WizardAssistantDesktop")

if settings.contains("wizardwebsshport"):
# there is the key in QSettings
# print('Checking for wizardwebsshport in config')
wizardwebsshport = settings.value("wizardwebsshport")
# print('Found wizardwebsshport port in config:' + wizardwebsshport)
free_port = wizardwebsshport
else:
print("wizardwebsshport not found in config")
pass
except Exception as e:
print(f"Exception : {e}")
pass

try:
Expand Down

0 comments on commit c0fe0e5

Please sign in to comment.