track underMouse

This commit is contained in:
dries.k
2022-08-28 21:24:41 +02:00
parent bb6aa70890
commit 6dc97dda27
2 changed files with 24 additions and 10 deletions

View File

@@ -313,6 +313,7 @@ class MainApplication(QtWidgets.QApplication):
def image_popup_callback(self, link: str, pos: QtCore.QPoint):
if (filename := self.cache.lookup(link)) or (filename := self.downloader.get_filename(link)): # TODO: preload links
self.image_popup = ImagePopup(filename, pos, link)
self.image_popup.show()
else:
# TODO
logger.warning(f"Image {link} is not in the cache")