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

@ -58,9 +58,7 @@ impl Queue {
async fn apply(&self, image: LpImage) -> anyhow::Result<()> {
let file = image.file().unwrap();
#[allow(unused_mut)]
let mut editor = glycin::Editor::new(file.clone());
#[cfg(feature = "disable-glycin-sandbox")]
editor.sandbox_mechanism(Some(glycin::SandboxMechanism::NotSandboxed));
let editor = glycin::Editor::new(file.clone());
let mut list = Vec::new();
self.operations.rcu(|current_operations| {