mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
HexEditor: Change name for unsaved files to 'Untitled'
This commit is contained in:
parent
b246221eac
commit
7a87e920f2
1 changed files with 4 additions and 1 deletions
|
@ -322,7 +322,10 @@ void HexEditorWidget::set_path(const LexicalPath& lexical_path)
|
|||
void HexEditorWidget::update_title()
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.append(m_path);
|
||||
if (m_path.is_empty())
|
||||
builder.append("Untitled");
|
||||
else
|
||||
builder.append(m_path);
|
||||
if (m_document_dirty)
|
||||
builder.append(" (*)");
|
||||
builder.append(" - Hex Editor");
|
||||
|
|
Loading…
Add table
Reference in a new issue