summaryrefslogtreecommitdiff
path: root/Userland/Utilities/paste.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-20 15:22:01 +0100
committerLinus Groh <mail@linusgroh.de>2021-11-21 11:49:06 +0000
commitf22c0ffe0c5318e87a68142add4bd981baf5b13d (patch)
treec447995dac892144559ebccd8a9c7a6cccaf937a /Userland/Utilities/paste.cpp
parent06f140a025dd24d268ea798474813ad4daa49b37 (diff)
downloadserenity-f22c0ffe0c5318e87a68142add4bd981baf5b13d.zip
LibGUI+Everywhere: Make sync requests to Clipboard server more obvious
Diffstat (limited to 'Userland/Utilities/paste.cpp')
-rw-r--r--Userland/Utilities/paste.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/paste.cpp b/Userland/Utilities/paste.cpp
index 061d8c8fc7..e21b3858f3 100644
--- a/Userland/Utilities/paste.cpp
+++ b/Userland/Utilities/paste.cpp
@@ -74,7 +74,7 @@ int main(int argc, char* argv[])
clipboard.on_change = [&](const String&) {
// Technically there's a race here...
- auto data_and_type = clipboard.data_and_type();
+ auto data_and_type = clipboard.fetch_data_and_type();
if (data_and_type.mime_type.is_null()) {
spawn_command(watch_command, {}, "clear");
} else {
@@ -88,7 +88,7 @@ int main(int argc, char* argv[])
return app->exec();
}
- auto data_and_type = clipboard.data_and_type();
+ auto data_and_type = clipboard.fetch_data_and_type();
if (data_and_type.mime_type.is_null()) {
warnln("Nothing copied");