diff --git a/main/src/infrastructure/ui/app/app_instance.rs b/main/src/infrastructure/ui/app/app_instance.rs index 5265b5f75..6de322eb4 100644 --- a/main/src/infrastructure/ui/app/app_instance.rs +++ b/main/src/infrastructure/ui/app/app_instance.rs @@ -208,7 +208,7 @@ impl AppInstance for StandaloneAppInstance { fn hide(&mut self) -> Result<()> { self.running_state - .take() + .as_ref() .ok_or(anyhow!("app was already stopped"))? .common_state .hide()