diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 956cf3f43550083a964c68f3fa9835f3c98572c6..ab5a44392ea3b292748e79281eedcf09195e00ba 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -1590,10 +1590,10 @@ impl App { .insert(entity_id, window_invalidators); } - /// Get the name for this App. + /// Returns the name for this [`App`]. #[cfg(any(test, feature = "test-support", debug_assertions))] - pub fn get_name(&self) -> &'static str { - self.name.as_ref().unwrap() + pub fn get_name(&self) -> Option<&'static str> { + self.name } /// Returns `true` if the platform file picker supports selecting a mix of files and directories.