summaryrefslogtreecommitdiff
path: root/src/workspace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/workspace.rs')
-rw-r--r--src/workspace.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/workspace.rs b/src/workspace.rs
index 02f971b0..447e6061 100644
--- a/src/workspace.rs
+++ b/src/workspace.rs
@@ -105,6 +105,10 @@ impl Tab {
.unwrap_or_else(|| self.number.to_string())
}
+ pub fn is_auto_named(&self) -> bool {
+ self.custom_name.is_none()
+ }
+
pub fn set_custom_name(&mut self, name: String) {
self.custom_name = Some(name);
}