Reverted resize fix
Reverted fix to previous bug until I find a more consistent way.
This commit is contained in:
parent
64a99e0ee6
commit
32ac34125a
14
nrsc5-dui.py
14
nrsc5-dui.py
@ -297,10 +297,12 @@ class NRSC5_DUI(object):
|
|||||||
|
|
||||||
def on_cover_resize(self, container):
|
def on_cover_resize(self, container):
|
||||||
global mapDir
|
global mapDir
|
||||||
width, height = self.mainWindow.get_size()
|
#width, height = self.mainWindow.get_size()
|
||||||
if (self.width != width) or (self.height != height):
|
if True:
|
||||||
self.width = width
|
#if (self.width != width) or (self.height != height):
|
||||||
self.height = height
|
#self.width = width
|
||||||
|
#self.height = height
|
||||||
|
|
||||||
if (self.coverImage != "") and (self.coverImage[-5:] != "/aas/"):
|
if (self.coverImage != "") and (self.coverImage[-5:] != "/aas/"):
|
||||||
self.showArtwork(self.coverImage)
|
self.showArtwork(self.coverImage)
|
||||||
|
|
||||||
@ -497,8 +499,8 @@ class NRSC5_DUI(object):
|
|||||||
print("general error in the musicbrainz routine")
|
print("general error in the musicbrainz routine")
|
||||||
|
|
||||||
# now display it by simulating a window resize
|
# now display it by simulating a window resize
|
||||||
self.height = 0
|
#self.height = 0
|
||||||
self.width = 0
|
#self.width = 0
|
||||||
self.on_cover_resize(self.mainWindow)
|
self.on_cover_resize(self.mainWindow)
|
||||||
|
|
||||||
def showArtwork(self, art):
|
def showArtwork(self, art):
|
||||||
|
Loading…
Reference in New Issue
Block a user