Skip to content

Commit

Permalink
Fix ulimit error on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
justin025 committed Nov 28, 2024
1 parent bc63738 commit a8f3ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/onthespot/gui/thumb_listitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, label, thumb_url):

# Create QNetworkAccessManager
self.manager = QNetworkAccessManager(self)
request = QNetworkRequest(QUrl(thumb_url)) # Create the network request
request = QNetworkRequest(QUrl(thumb_url))

# Connect the finished signal to the slot
self.manager.finished.connect(self.on_finished)
Expand All @@ -47,9 +47,9 @@ def on_finished(self, reply: QNetworkReply):
pixmap = QPixmap()
pixmap.loadFromData(image_data)

# Scale the pixmap to fit within the 60x60 size
scaled_pixmap = pixmap.scaled(self.aspect_ratio, self.aspect_ratio, Qt.AspectRatioMode.KeepAspectRatio, Qt.TransformationMode.SmoothTransformation)
self.image_label.setPixmap(scaled_pixmap) # Update the QLabel with the pixmap

# Clean up the reply object
# Mark request for deletion
self.manager.deleteLater()
reply.deleteLater()

0 comments on commit a8f3ff8

Please sign in to comment.