mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
LibGUI+Everywhere: Make sync requests to Clipboard server more obvious
This commit is contained in:
parent
06f140a025
commit
f22c0ffe0c
13 changed files with 22 additions and 23 deletions
|
@ -58,7 +58,7 @@ int main(int argc, char** argv)
|
|||
GUI::Clipboard::the().set_plain_text(widget.get_entry());
|
||||
}));
|
||||
edit_menu.add_action(GUI::CommonActions::make_paste_action([&](auto&) {
|
||||
auto clipboard = GUI::Clipboard::the().data_and_type();
|
||||
auto clipboard = GUI::Clipboard::the().fetch_data_and_type();
|
||||
if (clipboard.mime_type == "text/plain") {
|
||||
if (!clipboard.data.is_empty()) {
|
||||
auto data = atof(StringView(clipboard.data).to_string().characters());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue