Programs: Fix unsaved dialog prompt showing incorrectly