Skip to content

Commit

Permalink
Fix an issue with the video not showing up when the system has "reduc…
Browse files Browse the repository at this point in the history
…ed motion" enabled
  • Loading branch information
sindresorhus committed Dec 31, 2021
1 parent 8cb6380 commit c560093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gifski/Utilities.swift
Expand Up @@ -3222,7 +3222,8 @@ extension NSViewController {
guard !NSWorkspace.shared.accessibilityDisplayShouldReduceMotion else {
window.makeFirstResponder(viewController)

DispatchQueue.main.async {
// The delay is needed to prevent weird UI race issues on macOS 12. For example, it caused the video in the editor to not show up.
delay(seconds: 0.2) {
window.contentViewController = nil
window.setFrame(newWindowFrame, display: true)
window.contentViewController = viewController
Expand Down

0 comments on commit c560093

Please sign in to comment.