Missing folder warning
This commit is contained in:
parent
a2ce2d09e4
commit
3f267898d4
2 changed files with 17 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
- Show S3RV3R NOT R3SPOND1NG if the server hasn't responded in 45 seconds. (15 seconds after ping)
|
- Show S3RV3R NOT R3SPOND1NG if the server hasn't responded in 45 seconds. (15 seconds after ping)
|
||||||
- Close connection and try to reconnect if the server hasn't responded in 90 seconds. (60 seconds after ping)
|
- Close connection and try to reconnect if the server hasn't responded in 90 seconds. (60 seconds after ping)
|
||||||
- Fallback to PyQt5. (for Windows 7 users mainly)
|
- Fallback to PyQt5. (for Windows 7 users mainly)
|
||||||
|
- Warning for people who forgot to extract the zipfile.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Error when manually moving group.
|
- Error when manually moving group.
|
||||||
|
|
|
@ -1244,7 +1244,7 @@ class PesterWindow(MovingWindow):
|
||||||
msgBox.setWindowTitle(":(")
|
msgBox.setWindowTitle(":(")
|
||||||
msgBox.setTextFormat(QtCore.Qt.TextFormat.RichText) # Clickable html links
|
msgBox.setTextFormat(QtCore.Qt.TextFormat.RichText) # Clickable html links
|
||||||
self.filename = _datadir+"pesterchum.js"
|
self.filename = _datadir+"pesterchum.js"
|
||||||
msgBox.setText("<html><h3>A profile error occured,"
|
msgBox.setText("<html><h3>A profile error occured, "
|
||||||
"trying to switch to default pesterClient profile."
|
"trying to switch to default pesterClient profile."
|
||||||
"<br><br>%s<\h3><\html>" % e)
|
"<br><br>%s<\h3><\html>" % e)
|
||||||
PchumLog.critical(e)
|
PchumLog.critical(e)
|
||||||
|
@ -3773,6 +3773,20 @@ class MainProgram(QtCore.QObject):
|
||||||
|
|
||||||
options = self.oppts(sys.argv[1:])
|
options = self.oppts(sys.argv[1:])
|
||||||
|
|
||||||
|
# Check if the user is a silly little guy
|
||||||
|
for folder in ['smilies', 'themes']:
|
||||||
|
if not os.path.isdir(folder):
|
||||||
|
msgbox = QtWidgets.QMessageBox()
|
||||||
|
msg = ("'%s' folder not found, Pesterchum will "
|
||||||
|
"probably not function correctly."
|
||||||
|
"\nIf this is an excecutable build, "
|
||||||
|
"verify you extracted the zipfile." % folder)
|
||||||
|
msgbox.setWindowTitle("SK1LL 1SSU3 >:[")
|
||||||
|
msgbox.setInformativeText(msg)
|
||||||
|
msgbox.setIcon(QtWidgets.QMessageBox.Icon.Critical)
|
||||||
|
msgbox.exec()
|
||||||
|
|
||||||
|
|
||||||
# If we're using pygame for sound we need to init
|
# If we're using pygame for sound we need to init
|
||||||
if 'pygame' in sys.modules:
|
if 'pygame' in sys.modules:
|
||||||
# we could set the frequency higher but i love how cheesy it sounds
|
# we could set the frequency higher but i love how cheesy it sounds
|
||||||
|
|
Loading…
Reference in a new issue