Skip to content

Commit

Permalink
修正注释 | Edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldis committed Jul 10, 2018
1 parent 9042a2a commit b2352e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions Mos/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
func applicationWillTerminate(_ aNotification: Notification) {
ScrollCore.shared.endHandlingScroll()
}
// 检查是否有访问 accessibility 权限, 如果有则启动滚动处理
// 持续检查是否有访问 accessibility 权限, 如果有则启动滚动处理, 并结束计时器
// 10.14下若无权限会直接在创建 eventTap 时报错
@objc func accessibilityPermissionsChecker(_ timer: Timer) {
if AXIsProcessTrusted() {
timer.invalidate()
ScrollCore.shared.startHandlingScroll()
ScrollCore.shared.startHandlingScroll()
}
}

Expand Down
18 changes: 4 additions & 14 deletions Mos/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -571,25 +571,15 @@
<action selector="whiteListModeClick:" target="bga-wG-iim" id="tEA-xE-VhI"/>
</connections>
</button>
<box focusRingType="exterior" verticalHuggingPriority="750" fixedFrame="YES" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="TlZ-r7-thf">
<rect key="frame" x="21" y="333" width="408" height="5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
</box>
<segmentedControl verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AQK-ih-gQD">
<rect key="frame" x="20" y="19" width="410" height="23"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<segmentedCell key="cell" borderStyle="border" alignment="left" style="smallSquare" trackingMode="momentary" id="wuZ-GY-2Ba">
<segmentedCell key="cell" borderStyle="border" alignment="left" segmentDistribution="fill" style="smallSquare" trackingMode="momentary" id="wuZ-GY-2Ba">
<font key="font" metaFont="system"/>
<segments>
<segment image="NSAddTemplate" width="21">
<nil key="label"/>
</segment>
<segment image="NSRemoveTemplate" width="21" tag="1">
<nil key="label"/>
</segment>
<segment width="364" enabled="NO">
<nil key="label"/>
</segment>
<segment image="NSAddTemplate" width="21"/>
<segment image="NSRemoveTemplate" width="21" tag="1"/>
<segment width="364" enabled="NO"/>
</segments>
</segmentedCell>
<connections>
Expand Down

0 comments on commit b2352e4

Please sign in to comment.