Open source CapCut alternative.
TypeScript
fix(app): render notch immediately, not gated on permission window
David Le8b60e0c4507a
diff --git a/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift b/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swiftindex 7393ea35..678259d3 100644--- a/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift+++ b/apps/Donkey/Sources/Donkey/DonkeyAppDelegate.swift@@ -95,16 +95,16 @@ final class DonkeyAppDelegate: NSObject, NSApplicationDelegate {loginWindowController = nilNSApp.setActivationPolicy(.regular)+ // The notch overlay renders immediately on launch, so it's always present. When permissions+ // still need granting, the setup window opens alongside the notch rather than gating it.+ startOverlaySurfaces()+let permissionSetupController = MacPermissionSetupWindowController()- if permissionSetupController.permissionsAreReady {- startOverlaySurfaces()- return- }+ guard !permissionSetupController.permissionsAreReady else { return }self.permissionSetupController = permissionSetupControllerpermissionSetupController.completed = { [weak self] inself?.permissionSetupController = nil- self?.startOverlaySurfaces()}permissionSetupController.showSetup()}