Skip to content

Commit

Permalink
Fallback for missing color space
Browse files Browse the repository at this point in the history
  • Loading branch information
superhighfives committed Jan 23, 2021
1 parent bd6624f commit 90ed75e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Pika/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
openSplashWindow(nil)
NSApp.activate(ignoringOtherApps: true)
}

// Configure color space
if !NSColorSpace.availableColorSpaces(with: .rgb).contains(Defaults[.colorSpace]) {
Defaults[.colorSpace] = Defaults.Keys.colorSpace.defaultValue
}
}

func applicationShouldHandleReopen(_: NSApplication, hasVisibleWindows: Bool) -> Bool {
Expand Down

0 comments on commit 90ed75e

Please sign in to comment.