Fix trim button not being activated by initial region specification

This commit is contained in:
Kovid Goyal 2024-03-15 05:31:21 +05:30
parent 976f881eec
commit 9330217e9b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -134,6 +134,7 @@ class TrimImage(QDialog):
if d.exec() == QDialog.DialogCode.Accepted: if d.exec() == QDialog.DialogCode.Accepted:
width, height = d.selection_size width, height = d.selection_size
self.canvas.set_selection_size_in_image_coords(width, height) self.canvas.set_selection_size_in_image_coords(width, height)
self.selection_changed(True)
def do_trim(self): def do_trim(self):
self.canvas.trim_image() self.canvas.trim_image()