1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00

LibGUI+Everywhere: Make sync requests to Clipboard server more obvious

This commit is contained in:
Ben Wiederhake 2021-11-20 15:22:01 +01:00 committed by Linus Groh
parent 06f140a025
commit f22c0ffe0c
13 changed files with 22 additions and 23 deletions

View file

@ -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");