summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor
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/Applications/FontEditor
parent06f140a025dd24d268ea798474813ad4daa49b37 (diff)
downloadserenity-f22c0ffe0c5318e87a68142add4bd981baf5b13d.zip
LibGUI+Everywhere: Make sync requests to Clipboard server more obvious
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r--Userland/Applications/FontEditor/FontEditor.cpp2
-rw-r--r--Userland/Applications/FontEditor/GlyphEditorWidget.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp
index 0b0bceb810..c3aa56b475 100644
--- a/Userland/Applications/FontEditor/FontEditor.cpp
+++ b/Userland/Applications/FontEditor/FontEditor.cpp
@@ -202,7 +202,7 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&&
m_glyph_editor_widget->paste_glyph();
m_glyph_map_widget->update_glyph(m_glyph_map_widget->selected_glyph());
});
- m_paste_action->set_enabled(GUI::Clipboard::the().mime_type() == "glyph/x-fonteditor");
+ m_paste_action->set_enabled(GUI::Clipboard::the().fetch_mime_type() == "glyph/x-fonteditor");
m_delete_action = GUI::CommonActions::make_delete_action([this](auto&) {
if (m_glyph_editor_widget->is_glyph_empty() && m_edited_font->raw_glyph_width(m_glyph_map_widget->selected_glyph()) == 0)
return;
diff --git a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
index 63f7311db7..bf385106e1 100644
--- a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
+++ b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp
@@ -84,7 +84,7 @@ void GlyphEditorWidget::copy_glyph()
void GlyphEditorWidget::paste_glyph()
{
- auto [data, mime_type, metadata] = GUI::Clipboard::the().data_and_type();
+ auto [data, mime_type, metadata] = GUI::Clipboard::the().fetch_data_and_type();
if (!mime_type.starts_with("glyph/"))
return;