Report an error when trying to open ui in linux::headless (#11952)
Release Notes: - N/A
This commit is contained in:
parent
9d10969906
commit
b890fa71ff
5 changed files with 25 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue