ClipboardHistory: Copy metadata when reusing a historical clipping

This commit is contained in:
Andreas Kling 2020-09-05 17:06:34 +02:00
parent 2e446b662b
commit 40e6a3dcc3
Notes: sideshowbarker 2024-07-19 02:54:15 +09:00

View file

@ -70,7 +70,7 @@ int main(int argc, char* argv[])
table_view.on_activation = [&](const GUI::ModelIndex& index) {
auto& data_and_type = model->item_at(index.row());
GUI::Clipboard::the().set_data(data_and_type.data, data_and_type.mime_type);
GUI::Clipboard::the().set_data(data_and_type.data, data_and_type.mime_type, data_and_type.metadata);
};
auto applet_window = GUI::Window::construct();