From 9b0ec248f574f6a1c3e84edf0acb3c9c393e37f3 Mon Sep 17 00:00:00 2001 From: Kai Azim <68963405+MrKai77@users.noreply.github.com> Date: Sun, 3 Sep 2023 20:06:08 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AB=20Add=20`0.005`=20sec.=20delay=20t?= =?UTF-8?q?o=20window=20being=20closed=20to=20reduce=20flickering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Loop/Helpers/Window.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loop/Helpers/Window.swift b/Loop/Helpers/Window.swift index db2bd7b9..fd1d64c1 100644 --- a/Loop/Helpers/Window.swift +++ b/Loop/Helpers/Window.swift @@ -150,7 +150,7 @@ class Window { // Restore original window size self.setSize(startingSize) - DispatchQueue.main.async { + DispatchQueue.main.asyncAfter(deadline: .now() + 0.005) { // Close window, then activate completion handler panel.close() completion(minSize)