Image Recovery and Welcome dialog conflicting with each other
Environment/Versions
- GIMP version: main dev branch
- Operating System: probably all
Description of the bug
When the "Image Recovery" popup happens, it may be behind the welcome dialog. Unfortunately it seems like it is stealing input. Therefore it is impossible to click anywhere in the welcome dialog until you mean a choice to reload or discard the crash image.
Unfortunately since the popup may be behind the welcome dialog, you don't know this. And therefore it looks like GIMP is "frozen".
The solution could be that we make sure that the "Image Recovery" image is always displayed on top.
Another solution could be that when the "Image Recovery" dialog is fired up (I believe it fires first), then we delay the Welcome dialog to after a choice is made on this dialog.
@cmyk.student If you want to look into this, it would be nice. ;-)
Reproduction
Is the bug reproducible? Always (at least so far and for me)
Reproduction steps:
- Have an image opened with changes unsaved.
- Make sure that the welcome dialog is set to always open at start.
- Kill GIMP.
- Restart GIMP.
Expected result: If the crash handler work correctly, you will likely have both dialogs opened. And if the stack order is the same as me, the recovery popup is hidden by the welcome dialog which makes it invisible. And without understanding why, it is impossible to interact with the welcome dialog.
Actual result: Either the recovery popup should be on top making it obvious you have to answer it first or both dialogs should not happen in the same time.
Note: in case you can't easily reproduce the image recovery, just add a XCF file (copy it, don't move it; as it will be deleted automatically by GIMP) inside the backups/
folder in the config directory. Any XCF in the backups/ folder is considered to be created by the crash recovery system.
Additional information
If you have a backtrace for a crash or a warning, paste it here.