mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:28:13 +00: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
Add a link
Reference in a new issue