Reverted resize fix

Reverted fix to previous bug until I find a more consistent way.
This commit is contained in:
markjfine 2021-05-10 12:12:57 -04:00 committed by GitHub
parent 64a99e0ee6
commit 32ac34125a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,10 +297,12 @@ class NRSC5_DUI(object):
def on_cover_resize(self, container):
global mapDir
width, height = self.mainWindow.get_size()
if (self.width != width) or (self.height != height):
self.width = width
self.height = height
#width, height = self.mainWindow.get_size()
if True:
#if (self.width != width) or (self.height != height):
#self.width = width
#self.height = height
if (self.coverImage != "") and (self.coverImage[-5:] != "/aas/"):
self.showArtwork(self.coverImage)
@ -497,8 +499,8 @@ class NRSC5_DUI(object):
print("general error in the musicbrainz routine")
# now display it by simulating a window resize
self.height = 0
self.width = 0
#self.height = 0
#self.width = 0
self.on_cover_resize(self.mainWindow)
def showArtwork(self, art):