def delete(self):
        """
        Delete the item from disc and the library model.

        :rtype: None
        """
        studiolibrary.removePath(self.path())

        if self.library():
            self.library().removePath(self.path())

        self.deleted.emit(self)
    def delete(self):
        """
        Delete the item from disc and the library model.

        :rtype: None
        """
        studiolibrary.removePath(self.path())

        if self.library():
            self.library().removePath(self.path())

        self.deleted.emit(self)
Exemple #3
0
    def delete(self):
        """
        Delete the item from disc and the database.

        :rtype: None
        """
        path = self.path()
        studiolibrary.removePath(path)

        if self.database():
            self.database().delete(path)

        if self.libraryWidget():
            self.libraryWidget().refresh()
Exemple #4
0
    def delete(self, needSync=True):
        """
        Delete the item from disc and the library model.

        :rtype: None
        """
        studiolibrary.removePath(self.path())

        if needSync:
            if self.libraryWindow():
                self.libraryWindow().sync()
            elif self.library():
                self.library().sync()

        self.deleted.emit(self)
Exemple #5
0
def reset():
    """Remove and reset the item settings."""
    global _settings
    _settings = None
    studiolibrary.removePath(path())
def resetSettings():
    """Remove and reset the item settings."""
    global _settings
    _settings = None
    studiolibrary.removePath(SETTINGS_PATH)
Exemple #7
0
def resetSettings():
    """Remove and reset the item settings."""
    global _settings
    _settings = None
    studiolibrary.removePath(SETTINGS_PATH)