fix: debug profile spaces count was incorrect

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-04-24 02:44:12 +09:00
1 parent e35fe6b6c8
commit e98d401dc5
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ class DebugProfile {
("OS version", ProcessInfo.processInfo.operatingSystemVersionString),
("OS architecture", Sysctl.run("hw.machine")),
("Locale", Locale.current.debugDescription),
("Spaces count", String((CGSCopyManagedDisplaySpaces(cgsMainConnectionId) as! [NSDictionary]).map { (display: NSDictionary) -> Any? in display["Spaces"] }.count)),
("Spaces count", String(Spaces.allIdsAndIndexes().count)),
("Dark mode", Preferences.getString("AppleInterfaceStyle") ?? "Light"),
("\"Displays have separate Spaces\"", NSScreen.screensHaveSeparateSpaces ? "checked" : "unchecked"),
// hardware