gpui: Don't panic on failing to set X11 cursor style (#21689)
One more panic (well, two) that should be a `log_err`. Release Notes: - N/A
This commit is contained in:
parent
4b93a5ca44
commit
ac07b9197a
2 changed files with 15 additions and 3 deletions
|
@ -9,6 +9,7 @@ use std::time::{Duration, Instant};
|
|||
use calloop::generic::{FdWrapper, Generic};
|
||||
use calloop::{EventLoop, LoopHandle, RegistrationToken};
|
||||
|
||||
use anyhow::Context as _;
|
||||
use collections::HashMap;
|
||||
use http_client::Url;
|
||||
use smallvec::SmallVec;
|
||||
|
@ -1417,9 +1418,10 @@ impl LinuxClient for X11Client {
|
|||
..Default::default()
|
||||
},
|
||||
)
|
||||
.expect("failed to change window cursor")
|
||||
.check()
|
||||
.unwrap();
|
||||
.anyhow()
|
||||
.and_then(|cookie| cookie.check().anyhow())
|
||||
.context("setting cursor style")
|
||||
.log_err();
|
||||
}
|
||||
|
||||
fn open_uri(&self, uri: &str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue