Report an error when trying to open ui in linux::headless (#11952)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-17 09:50:23 -06:00 committed by GitHub
parent 9d10969906
commit b890fa71ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 25 additions and 0 deletions

View file

@ -124,6 +124,10 @@ fn init_ui(app_state: Arc<AppState>, cx: &mut AppContext) -> Result<()> {
}
};
if let Err(err) = cx.can_open_windows() {
return Err(err);
}
SystemAppearance::init(cx);
load_embedded_fonts(cx);