display: Prevent error when serializing invalid configuration
If no monitors are enabled, then the variant would end up with an invalid variant type, causing a crash later on. This case only happened due to other bugs (i.e. in principle we should never send a configuration without any monitors to the server). Prevent the serialization error by specifying the correct type for the builder, therefore potentially preventing a crash in such a corner case.
Showing with 1 addition and 1 deletion