From 8698cbc17797ae906d06a21d31ab938cb9125575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Macio=C5=82ek?= Date: Sat, 8 Jun 2024 20:42:28 +0200 Subject: [PATCH] new file info update --- src/ui.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 83fa40a..06d4cb4 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -63,8 +63,10 @@ pub fn render(app: &mut App, frame: &mut Frame) { } else { format!("Filename: {} ", app.opened_filename) } - } else { + } else if app.dirty { "Not saved!".into() + } else { + "".into() }; let filename_status = Line::from(filename_content)