ui: Close F2 confirmation dialig

Previously sometimes the F2 confirmation dialog wasn't closed.

Change-Id: Ie8b9eabf90158392743c770b40f652a537527918
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>