Git master : Deconvolution not executed if undo redo is cycled
Siril version: git master commit 763d3e7e
Operating System: Linux Debian 12.5
Package: Compiled from source.
Description of the bug
If I do a first deconvolution (generate and apply) followed by a second deconvolution (apply) then both deconvolutions are executed. This is visible in main window and works as expected. However if I instead do first deconvolution (generate and apply), followed by main window undo and redo, then a second deconvolution (apply) is not executed.
If I checkout tag 1.2.1 everything works as expected.
I have not bisected.
Reproduction
Reproduction steps:
- Open fits image (with stars). Apply auto-stretch for better visibility in main window of stars.
- Select image processing -> deconvolution (I pick manual PSF, disc, large radius, many iterations for obvious visible impact) generate PSF and press apply. Keep deconvolution window open.
- Go to main window and press undo (deconvolution). Main window shows that deconvolution is undone, stars revert to before state.
- Go to main window and press redo (deconvolution). Main window shows that deconvolution is redone, stars are deconvolved again. This is also visible in main window.
- Go back to deconvolution window and press apply PSF again. Console states: Siril FFS wisdom imported successfully... Execution time stated, Siril FFT wisdom updated successfully...
- Main window shows no visible impact from this deconvolution step.
Expected result: Main window should show stars deconvolved a second time.
Actual result: Main window shows no visible impact from second deconvolution step (step 5 above).
If I do not do undo + redo and just do 1) image processing -> deconvolution generate PSF + apply, followed by 2) second apply, then everything works and two deconvolution steps are executed.