Skip to content

Commit 58633fc

Browse files
committed
a0.6 Pre-1 Hotfix 1
I need to think of a proper versioning system. fixed missing refresh.png fixed crash on opening options or the instance manager.
1 parent 8bed00c commit 58633fc

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

compile_win.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ echo Creating venv.
1212
%pythonver% -m venv venv
1313

1414
echo Activating venv.
15-
venv\Scripts\activate & echo Adding dependencies. & pip install pyqt5 requests appdirs pypresence & echo Using pyinstaller. & pyinstaller -y -F -i "favicon.ico" --add-data "background.png";"." --add-data "logo.png";"." --add-data "favicon.ico";"." --add-data "blogbackground.png";"." --add-data "blog.html";"." --hidden-import pypresence launcher.py & echo Complete! & PAUSE
15+
venv\Scripts\activate && echo Adding dependencies. && pip install pyqt5 requests appdirs pypresence && echo Using pyinstaller. && pyinstaller -y -F -i "favicon.ico" --add-data "background.png";"." --add-data "logo.png";"." --add-data "favicon.ico";"." --add-data "blogbackground.png";"." --add-data "blog.html";"." --add-data "refresh.png";"." --hidden-import pypresence launcher.py && echo Complete! & PAUSE

launcher.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
import functools
1313
import urllib
1414

15-
from PyQt5.QtCore import Qt
16-
from PyQt5.QtGui import QIcon, QFont
17-
from PyQt5.QtWidgets import QApplication, QWidget, QTextEdit, QPushButton, QLabel, QLineEdit, QMessageBox, QDialog, \
18-
QComboBox, QScrollArea, QVBoxLayout, QFileDialog, QTabWidget, QGroupBox
15+
from PyQt5.QtCore import *
16+
from PyQt5.QtGui import *
17+
from PyQt5.QtWidgets import *
1918

2019

2120
class mainWindow(QWidget):
@@ -347,7 +346,6 @@ def __init__(self, parent=None):
347346

348347
# Same drill. Does visible things.
349348
def initUI(self):
350-
self.setWindowFlag(Qt.WindowContextHelpButtonHint, False)
351349
self.setWindowTitle(self.title)
352350
self.setGeometry(self.left, self.top, 480, 240)
353351
self.setFixedSize(self.size())
@@ -408,7 +406,6 @@ class instanceWindow(QDialog):
408406
def __init__(self, parent=None):
409407
super().__init__(parent)
410408
self.progressWin = installWindow(self)
411-
self.setWindowFlag(Qt.WindowContextHelpButtonHint, False)
412409
self.getModpackRepo.result.connect(self.updateRepo)
413410
optionWindow.launcherConfig = utils.loadSettings(self)
414411
screen_resolution = app.desktop().screenGeometry()
@@ -686,7 +683,6 @@ class installWindow(QDialog):
686683
# Same drill. Does background things.
687684
def __init__(self, parent=None):
688685
super().__init__(parent)
689-
self.setWindowFlag(Qt.WindowContextHelpButtonHint, False)
690686
screen_resolution = app.desktop().screenGeometry()
691687
self.title = config.NAME + " " + config.VER + " Modpack Export Wizard"
692688
self.setWindowIcon(QIcon(config.ICON))
@@ -728,8 +724,6 @@ class exportWindow(QDialog):
728724
# Same drill. Does background things.
729725
def __init__(self, parent=None):
730726
super().__init__(parent)
731-
self.setWindowFlag(Qt.WindowCloseButtonHint, False)
732-
self.setWindowFlag(Qt.WindowContextHelpButtonHint, False)
733727
screen_resolution = app.desktop().screenGeometry()
734728
self.title = config.NAME + " " + config.VER + " Modpack Installer"
735729
self.setWindowIcon(QIcon(config.ICON))

0 commit comments

Comments
 (0)