summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor/main.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2021-08-26 17:25:02 -0400
committerAndreas Kling <kling@serenityos.org>2021-08-27 12:38:29 +0200
commite8e7c59c34b88d1601e56ec9073fe5b497e1577a (patch)
treefc7345ad65b5efabc8e7b305db0a73b7f0aa7761 /Userland/Applications/FontEditor/main.cpp
parenta621932c11df44d0ebb9dae303c62647acad177b (diff)
downloadserenity-e8e7c59c34b88d1601e56ec9073fe5b497e1577a.zip
FontEditor: Let WindowServer manage modified markings
Simplifies building modified/new font titles and lets FontEditor make use of the comfy ellipsis close button.
Diffstat (limited to 'Userland/Applications/FontEditor/main.cpp')
-rw-r--r--Userland/Applications/FontEditor/main.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Applications/FontEditor/main.cpp b/Userland/Applications/FontEditor/main.cpp
index 45c0453457..4c87e48ee0 100644
--- a/Userland/Applications/FontEditor/main.cpp
+++ b/Userland/Applications/FontEditor/main.cpp
@@ -52,7 +52,6 @@ int main(int argc, char** argv)
RefPtr<Gfx::BitmapFont> edited_font;
if (path == nullptr) {
- path = "Untitled.font";
edited_font = static_ptr_cast<Gfx::BitmapFont>(Gfx::FontDatabase::default_font().clone());
} else {
auto bitmap_font = Gfx::BitmapFont::load_from_file(path);
@@ -76,7 +75,6 @@ int main(int argc, char** argv)
window->resize(440, 470);
auto& font_editor = window->set_main_widget<FontEditorWidget>(path, move(edited_font));
- font_editor.update_title();
font_editor.initialize_menubar(*window);