I think a notification banner at the top of the window like many browsers do is fine, it doesn't block the user, is still visible, you just leave the behaviour that is the most harmless in this particular case (don't lose the changes in the case of notepad++).