GUI2/Label: warn if link_aware is true but use_markup is false

This commit is contained in:
Charles Dang 2020-12-15 11:58:31 +11:00
parent b3d4a3744d
commit c49469c67b

View file

@ -328,6 +328,9 @@ builder_label::builder_label(const config& cfg)
, can_shrink(cfg["can_shrink"].to_bool(false))
, link_aware(cfg["link_aware"].to_bool(false))
{
if(link_aware && !use_markup) {
WRN_GUI_L << "Link awareness enabled for label '" + id + "' but markup is disabled. Links will not be highlighted." << std::endl;
}
}
widget* builder_label::build() const