1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-08 08:11:36 +01:00
Clementine-audio-player-Mac.../scripts/invalidate-deleted/invalidate_deleted.py
Paweł Bara 3db00fc339 plugin that lets you grey out deleted songs on demand ("main menu / playlist") - available by default
also: this action will "ungrey" songs that were deleted but got restored

SIPs
2011-03-19 10:22:55 +00:00

23 lines
559 B
Python

import clementine
from PyQt4.QtCore import QObject
from PyQt4.QtCore import SIGNAL
from PyQt4.QtGui import QAction
class InvalidateDeleted(QObject):
def __init__(self):
QObject.__init__(self)
self.action = QAction("invalidate_deleted", self)
self.action.setText("Grey out deleted songs")
self.connect(self.action, SIGNAL("activated()"), self.grey_out_activated)
clementine.ui.AddAction('playlist_menu', self.action)
def grey_out_activated(self):
clementine.playlists.InvalidateDeletedSongs()
script = InvalidateDeleted()