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:
parent
1d98499234
commit
310fdd87d1
1 changed files with 2 additions and 7 deletions
|
@ -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 "<...>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue