mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:28:13 +00:00
LibGUI: Add Clipboard::clear()
Does exactly what it says on the tin :^)
This commit is contained in:
parent
e81d35995e
commit
f15f03376b
2 changed files with 6 additions and 0 deletions
|
@ -78,6 +78,11 @@ void Clipboard::set_data(ReadonlyBytes data, const String& type, const HashMap<S
|
|||
connection().async_set_clipboard_data(move(buffer), type, metadata);
|
||||
}
|
||||
|
||||
void Clipboard::clear()
|
||||
{
|
||||
connection().async_set_clipboard_data({}, {}, {});
|
||||
}
|
||||
|
||||
void ClipboardServerConnection::clipboard_data_changed(String const& mime_type)
|
||||
{
|
||||
auto& clipboard = Clipboard::the();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue