From 016449cff9346badce1c289d94aa142ad4462770 Mon Sep 17 00:00:00 2001 From: Benjamin Klum Date: Fri, 1 Dec 2023 12:37:57 +0100 Subject: [PATCH] Playtime: Fix window hiding with action/shortcut --- main/src/infrastructure/ui/app/app_instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()