Use glycin devel env auto detection

We don't need to disable the sandbox for development environments
manually anymore. Glycin should take care of that now.
This commit is contained in:
Sophie Herold 2024-07-05 22:29:06 +02:00
parent ae74411983
commit 1b70686105
9 changed files with 9 additions and 32 deletions

View file

@ -72,9 +72,6 @@ impl Svg {
log::trace!("Setting up SVG loader");
let mut loader = glycin::Loader::new(file);
#[cfg(feature = "disable-glycin-sandbox")]
loader.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
loader.cancellable(cancellable.clone());
let image = loader.load().await?;
@ -179,10 +176,7 @@ impl Svg {
height: i32,
) -> anyhow::Result<gdk::Texture> {
#[allow(unused_mut)]
let mut loader = glycin::Loader::new(file.clone());
#[cfg(feature = "disable-glycin-sandbox")]
loader.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
let loader = glycin::Loader::new(file.clone());
let image = loader.load().await?;
let frame_request = glycin::FrameRequest::new().scale(width as u32, height as u32);