I don't think this meets the bar for copyrightable code. Copyright protects creative expression. Displaying a single dialogue does not take creative expression, and pretty much any developer given the task would produce code identical to this.
This easily meets thresholds for creative work. The basic concept is nigh-trivial, but the concrete implementation is still creative.