mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
|
@ -752,7 +752,7 @@ void TerminalWidget::paste()
|
|||
if (m_ptm_fd == -1)
|
||||
return;
|
||||
|
||||
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;
|
||||
if (data.is_empty())
|
||||
|
@ -1166,7 +1166,7 @@ void TerminalWidget::update_copy_action()
|
|||
|
||||
void TerminalWidget::update_paste_action()
|
||||
{
|
||||
auto [data, mime_type, _] = GUI::Clipboard::the().data_and_type();
|
||||
auto [data, mime_type, _] = GUI::Clipboard::the().fetch_data_and_type();
|
||||
m_paste_action->set_enabled(mime_type.starts_with("text/") && !data.is_empty());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue