Ask for pending action before closing window
Step 1: Open Pamac.
Step 2: Mark some changes (i.e. mark some packages to be added/removed/reinstalled without clicking "apply" button).
Step 3: Close the window.
Pamac should warn user about pending actions and ask if they still want to close the window.
It closes immediately.