From 80a33d04f4bc34552b1052fa452a0592b52abd63 Mon Sep 17 00:00:00 2001 From: bogind Date: Sun, 28 Jul 2024 11:36:37 +0300 Subject: [PATCH] renamed PlaySoundAlgorithm to PlaySoundEffectAlgorithm --- qgs_sound_effects_provider.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qgs_sound_effects_provider.py b/qgs_sound_effects_provider.py index a6db9cc..3d5ecd6 100644 --- a/qgs_sound_effects_provider.py +++ b/qgs_sound_effects_provider.py @@ -36,7 +36,7 @@ MESSAGE_CATEGORY = 'QGIS Sound Effects' -class PlaySoundAlgorithm(QgsProcessingAlgorithm): +class PlaySoundEffectAlgorithm(QgsProcessingAlgorithm): SOUND = 'SOUND' @@ -134,7 +134,7 @@ def processAlgorithm(self, parameters, context, feedback): def createInstance(self): - return PlaySoundAlgorithm() + return PlaySoundEffectAlgorithm() class SaySomeTextAlgorithm(QgsProcessingAlgorithm): """This algorithm uses the PyQt5 QTextToSpeech class and your Operating System's native text-to-speech engine to say some text. @@ -321,5 +321,6 @@ def unload(self): pass def loadAlgorithms(self): + self.addAlgorithm(PlaySoundEffectAlgorithm()) self.addAlgorithm(SaySomeTextAlgorithm()) \ No newline at end of file