Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
superhighfives committed Mar 11, 2024
1 parent d20acfa commit 40f39c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pika/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SwiftUI

@main
// swiftlint:disable type_body_length
// swiftlint:disable file_length
class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
var statusBarItem: NSStatusItem!
var statusBarMenu: NSMenu!
Expand Down Expand Up @@ -131,6 +132,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
andEventID: AEEventID(kAEGetURL))
}

// swiftlint:disable cyclomatic_complexity
@objc func handleGetURLEvent(_ event: NSAppleEventDescriptor, withReplyEvent _: NSAppleEventDescriptor) {
if let urlString = event.forKeyword(AEKeyword(keyDirectObject))?.stringValue {
let url = URL(string: urlString)
Expand Down
1 change: 1 addition & 0 deletions Pika/Extensions/NSWindowFade.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

// swiftlint:disable opening_brace

import AppKit
import Cocoa

private let defaultWindowAnimationDuration: TimeInterval = 0.25
Expand Down
1 change: 1 addition & 0 deletions Pika/Utilities/ClosestVector.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import AppKit
import Cocoa
import Defaults

Expand Down

0 comments on commit 40f39c1

Please sign in to comment.