Removed server prompt.
Since there's now only a single working one.
This commit is contained in:
parent
8ae822744c
commit
fe477997a0
1 changed files with 24 additions and 17 deletions
|
@ -3045,25 +3045,32 @@ class MainProgram(QtCore.QObject):
|
|||
# Choose a server by qt message box.
|
||||
# Writes the result to server.ini
|
||||
|
||||
msgBox = QtGui.QMessageBox()
|
||||
msgBox.setIcon(QtGui.QMessageBox.Information)
|
||||
msgBox.setWindowTitle("Please choose a server")
|
||||
msgBox.setText("Which server do you want to connect to?")
|
||||
msgBox.addButton(QtGui.QPushButton("irc.mindfang.org (Official)"), QtGui.QMessageBox.YesRole)
|
||||
msgBox.addButton(QtGui.QPushButton("pesterchum.xyz (Unofficial)"), QtGui.QMessageBox.NoRole)
|
||||
#msgBox = QtGui.QMessageBox()
|
||||
#msgBox.setIcon(QtGui.QMessageBox.Information)
|
||||
#msgBox.setWindowTitle("Please choose a server")
|
||||
#msgBox.setText("Which server do you want to connect to?")
|
||||
#msgBox.addButton(QtGui.QPushButton("irc.mindfang.org (Official)"), QtGui.QMessageBox.YesRole)
|
||||
#msgBox.addButton(QtGui.QPushButton("pesterchum.xyz (Unofficial)"), QtGui.QMessageBox.NoRole)
|
||||
# msgBox.addButton(QtGui.QPushButton('kaliope.ddns.net (Unofficial)'), QtGui.QMessageBox.RejectRole)
|
||||
ret = msgBox.exec_()
|
||||
reply = msgBox.buttonRole(msgBox.clickedButton())
|
||||
#ret = msgBox.exec_()
|
||||
#reply = msgBox.buttonRole(msgBox.clickedButton())
|
||||
|
||||
# Since there's currently no other working servers, all of this is commented out for now.
|
||||
|
||||
self.server = "pesterchum.xyz"
|
||||
print("Server is: pesterchum.xyz")
|
||||
|
||||
#if (reply==QtGui.QMessageBox.YesRole):
|
||||
# print("Server is: irc.mindfang.org")
|
||||
# self.server = "irc.mindfang.org"
|
||||
#if (reply==QtGui.QMessageBox.NoRole):
|
||||
# print("Server is: pesterchum.xyz")
|
||||
# self.server = "pesterchum.xyz"
|
||||
#if (reply==QtGui.QMessageBox.RejectRole):
|
||||
# print("Server is: kaliope.ddns.net")
|
||||
# self.server = "kaliope.ddns.net"
|
||||
|
||||
|
||||
if (reply==QtGui.QMessageBox.YesRole):
|
||||
print("Server is: irc.mindfang.org")
|
||||
self.server = "irc.mindfang.org"
|
||||
if (reply==QtGui.QMessageBox.NoRole):
|
||||
print("Server is: pesterchum.xyz")
|
||||
self.server = "pesterchum.xyz"
|
||||
if (reply==QtGui.QMessageBox.RejectRole):
|
||||
print("Server is: kaliope.ddns.net")
|
||||
self.server = "kaliope.ddns.net"
|
||||
|
||||
def doSoundInit():
|
||||
# TODO: Make this more uniform, adapt it into a general function.
|
||||
|
|
Loading…
Reference in a new issue