Readded self.show() to widget to fix issue

This commit is contained in:
BuildTools 2021-04-08 22:09:28 +02:00
parent e78f260cd7
commit 307a45b443

View file

@ -1276,8 +1276,14 @@ class PesterWindow(MovingWindow):
self.mychumcolor = QtWidgets.QPushButton(self) self.mychumcolor = QtWidgets.QPushButton(self)
self.mychumcolor.clicked.connect(self.changeMyColor) self.mychumcolor.clicked.connect(self.changeMyColor)
# self.show() before self.initTheme() fixes a
# layering issue on windows... for some reason...
self.show()
self.initTheme(self.theme) self.initTheme(self.theme)
self.hide()
self.waitingMessages = waitingMessageHolder(self) self.waitingMessages = waitingMessageHolder(self)
self.idler = AttrDict(dict( self.idler = AttrDict(dict(
@ -3280,7 +3286,7 @@ class MainProgram(QtCore.QObject):
doSoundInit() doSoundInit()
self.widget = PesterWindow(options, app=self.app) self.widget = PesterWindow(options, app=self.app)
#self.widget.show() <== moved to function #self.widget.show() <== Already called in showLoading()
self.trayicon = PesterTray(PesterIcon(self.widget.theme["main/icon"]), self.widget, self.app) self.trayicon = PesterTray(PesterIcon(self.widget.theme["main/icon"]), self.widget, self.app)
self.traymenu = QtWidgets.QMenu() self.traymenu = QtWidgets.QMenu()