|
18 | 18 | from syncplay.utils import resourcespath |
19 | 19 | from syncplay.utils import isLinux, isWindows, isMacOS |
20 | 20 | from syncplay.utils import formatTime, sameFilename, sameFilesize, sameFileduration, RoomPasswordProvider, formatSize, isURL |
21 | | -from syncplay.utils import isWatchedFile, getWatchedSubfolder, getCorrectedDirectoryForFile, getCorrectedPathForFile, canMarkAsUnwatched |
| 21 | +from syncplay.utils import isWatchedFile, getCorrectedPathForFile, canMarkAsWatched |
22 | 22 | from syncplay.vendor import Qt |
23 | 23 | from syncplay.vendor.Qt import QtCore, QtWidgets, QtGui, __binding__, __binding_version__, __qt_version__, IsPySide, IsPySide2, IsPySide6 |
24 | 24 | from syncplay.vendor.Qt.QtCore import Qt, QSettings, QSize, QPoint, QUrl, QLine, QDateTime |
@@ -754,10 +754,10 @@ def addSeenUnseenItems(pathFound, menu): |
754 | 754 | filename = os.path.basename(pathFound) |
755 | 755 | if len(constants.WATCHED_SUBFOLDER) > 0: |
756 | 756 | pathFound = getCorrectedPathForFile(pathFound) |
757 | | - if canMarkAsUnwatched(pathFound): |
758 | | - menu.addAction(QtGui.QPixmap(resourcespath + "yes_eye.png"), getMessage("mark-as-watched-menu-label"), lambda p=pathFound: self._markFileWatchedViaContext(p)) # TODO: Move to language |
759 | | - elif isWatchedFile(pathFound): |
| 757 | + if isWatchedFile(pathFound): |
760 | 758 | menu.addAction(QtGui.QPixmap(resourcespath + "no_eye.png"), getMessage("mark-as-unwatched-menu-label"), lambda p=pathFound: self._markFileUnwatchedViaContext(p)) # TODO: Move to language |
| 759 | + elif canMarkAsWatched(pathFound): |
| 760 | + menu.addAction(QtGui.QPixmap(resourcespath + "yes_eye.png"), getMessage("mark-as-watched-menu-label"), lambda p=pathFound: self._markFileWatchedViaContext(p)) # TODO: Move to language |
761 | 761 |
|
762 | 762 | indexes = self.playlist.selectedIndexes() |
763 | 763 | if len(indexes) > 0: |
|
0 commit comments