Skip to content

Commit

Permalink
Fixed non-zoom canvas events from not being triggered off on global d…
Browse files Browse the repository at this point in the history
…isable
  • Loading branch information
bogind committed Jul 23, 2024
1 parent caa7f98 commit 6769739
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
name=QGIS Sound Effects
qgisMinimumVersion=3.32
description=Add sound effects to QGIS to make work less boring
version=0.2.1
version=0.2.2
author=Dror Bogin
[email protected]

Expand All @@ -21,6 +21,9 @@ repository=https://github.com/bogind/qgs_sound_effects
hasProcessingProvider=yes
# Uncomment the following line and add your changelog:
# changelog=
2024-07-23 Version 0.2.2:
- bug fix:
- Fixed non-zoom canvas events from not being triggered off on global disable
2024-07-15 Version 0.2.1:
- bug fixes:
- Fixed canvas events to trigger when the global "enable" was False
Expand Down
4 changes: 2 additions & 2 deletions qgs_sound_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ def toggle_sound_effects(self):
self.enabled = self.sound_effects_toggle.isChecked()
self.set_setting('enabled', self.enabled)
self.update_last_entry()
self.toggle_canvas_events()
if self.enabled is True:
self.timer.start(1000)
self.toggle_canvas_events()
self.timer.start(1000)
else:
self.timer.stop()

Expand Down

0 comments on commit 6769739

Please sign in to comment.