@ -2,7 +2,7 @@ import validators, os
from PyQt5 import QtWidgets
from PyQt5 . QtCore import Qt , QSize , QUrl
from PyQt5 . QtGui import QPixmap , QResizeEvent , QKeyEvent , QStandardItemModel , QStandardItem , QMovie
from PyQt5 . QtGui import QPixmap , QResizeEvent , QKeyEvent , QStandardItemModel , QStandardItem , QMovie , QDesktopServices
from PyQt5 import QtMultimedia
from PyQt5 . QtMultimediaWidgets import QVideoWidget
@ -72,6 +72,7 @@ class Window(QtWidgets.QMainWindow):
self . ui . prev_unknown_image_button . clicked . connect ( self . on_prev_unknown_image_clicked )
self . ui . next_unknown_image_button . clicked . connect ( self . on_next_unknown_image_clicked )
self . ui . delete_button . clicked . connect ( self . on_delete_image_clicked )
self . ui . link_label . linkActivated . connect ( self . on_link_label_activated )
self . ui . presence_docker_button . clicked . connect ( self . toggle_presence_docker )
@ -746,7 +747,7 @@ class Window(QtWidgets.QMainWindow):
self . set_tag_list ( self . curr_tags )
return
self . __main . import_tags ( self . curr_art_id , result )
self . __main . import_tags ( result )
self . set_tag_list ( self . curr_tags )
def on_next_clicked ( self ) :
@ -1041,3 +1042,7 @@ class Window(QtWidgets.QMainWindow):
return
self . __main . refresh_shown_image ( )
def on_link_label_activated ( self , link : str ) :
print ( " Source link activated! " , link )
QDesktopServices . openUrl ( QUrl ( link ) )