Skip to content

Commit

Permalink
💫 Add 0.005 sec. delay to window being closed to reduce flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 4, 2023
1 parent c4d0d07 commit 9b0ec24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/Helpers/Window.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b0ec24

Please sign in to comment.