1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

TextEditor: Show "Untitled" when there's no current document path

This commit is contained in:
Andreas Kling 2020-12-30 03:44:38 +01:00
parent 7c0e43eb3d
commit 2dc09d1cd7
3 changed files with 8 additions and 3 deletions

View file

@ -54,10 +54,11 @@ public:
void set_preview_mode(PreviewMode);
void set_auto_detect_preview_mode(bool value) { m_auto_detect_preview_mode = value; }
void update_title();
private:
TextEditorWidget();
void set_path(const LexicalPath& file);
void update_title();
void update_preview();
void update_markdown_preview();
void update_html_preview();