1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:18:11 +00:00

ClipboardHistory: Update to new glyph format

This commit is contained in:
Maciej 2022-01-05 11:07:46 +01:00 committed by Andreas Kling
parent 1d98499234
commit 310fdd87d1

View file

@ -85,13 +85,8 @@ GUI::Variant ClipboardHistoryModel::data(const GUI::ModelIndex& index, GUI::Mode
if (data_and_type.mime_type.starts_with("glyph/")) {
StringBuilder builder;
builder.append("[");
builder.append(data_and_type.metadata.get("width").value_or("?"));
builder.append("x");
builder.append(data_and_type.metadata.get("height").value_or("?"));
builder.append("] ");
builder.append("(");
builder.append(data_and_type.metadata.get("char").value_or(""));
builder.append(")");
builder.append(data_and_type.metadata.get("count").value_or("?"));
builder.append(" glyph(s)]");
return builder.to_string();
}
return "<...>";