Skip to content

Commit

Permalink
don't update the options when pressing with the last button #357
Browse files Browse the repository at this point in the history
  • Loading branch information
maoschanz committed Feb 19, 2023
1 parent 52a4b24 commit 05501a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ drawing (1.2.0) unstable; urgency=low
* move the "use color editor" option to the preferences window
* fix the "use color editor" action
* move the option to cut out a background color from "paint" to "eraser" (#503)
* better update the preview of most tools when their options change (#357)
* update the user help manual
* preserve transparency of the original area when skewing with a solid background color
* update several translations
Expand Down
5 changes: 2 additions & 3 deletions src/tools/classic_tools/abstract_classic_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ def build_bottom_pane(self):
def set_common_values(self, event_btn, event_x, event_y):
self.x_press = event_x
self.y_press = event_y
# TODO eventually all tools will correctly rely on on_options_changed so
# this call to _set_options will only exist if the button changed
self._set_options(event_btn)
if event_btn != self._last_btn:
self._set_options(event_btn)
self._last_btn = event_btn

def on_options_changed(self):
Expand Down

0 comments on commit 05501a2

Please sign in to comment.