That only happens if you step back from the button...
Not necessarily, you can still move your now-local variable back to global scope - actions and conditions will reappear without having to Undo other changes (only if you are on the same session and didn't save-load the project since the change). Pretty nice feature, but having a warning would be useful anyway.