mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibGUI+Everywhere: Make sync requests to Clipboard server more obvious
This commit is contained in:
parent
06f140a025
commit
f22c0ffe0c
Notes:
sideshowbarker
2024-07-18 00:55:17 +09:00
Author: https://github.com/BenWiederhake
Commit: f22c0ffe0c
Pull-request: https://github.com/SerenityOS/serenity/pull/10984
Reviewed-by: https://github.com/linusg
13 changed files with 22 additions and 23 deletions
|
@ -136,7 +136,7 @@ Tab::Tab(BrowserWindow& window)
|
|||
};
|
||||
|
||||
m_location_box->add_custom_context_menu_action(GUI::Action::create("Paste && Go", [this](auto&) {
|
||||
auto [data, mime_type, _] = GUI::Clipboard::the().data_and_type();
|
||||
auto [data, mime_type, _] = GUI::Clipboard::the().fetch_data_and_type();
|
||||
if (!mime_type.starts_with("text/"))
|
||||
return;
|
||||
auto const& paste_text = data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue