perf: slightly reduce energy usage
This commit is contained in:
1 parent
9d8781f69b
commit
26e840c1e7
2 files changed
+3
No files matched your search
@@ -47,6 +47,7 @@ class SystemPermissions {
|
||||
App.app.restart()
|
||||
}
|
||||
})
|
||||
timer.tolerance = 4.9
|
||||
}
|
||||
|
||||
static func observePermissionsPreStartup(_ startupBlock: @escaping () -> Void) {
|
||||
@@ -70,6 +71,7 @@ class SystemPermissions {
|
||||
}
|
||||
}
|
||||
})
|
||||
timer.tolerance = 0.09
|
||||
}
|
||||
|
||||
static func ensurePermissionsAreGranted(_ continueAppStartup: @escaping () -> Void) {
|
||||
|
||||
@@ -154,6 +154,7 @@ class ThumbnailView: NSStackView {
|
||||
dragAndDropTimer = Timer.scheduledTimer(withTimeInterval: 2, repeats: false, block: { _ in
|
||||
self.mouseUpCallback()
|
||||
})
|
||||
dragAndDropTimer?.tolerance = 0.2
|
||||
return .link
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user