mirror of
https://github.com/zhigang1992/InTime.git
synced 2026-01-12 22:39:39 +08:00
Add 15 min
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
Changelog
|
||||
---------------
|
||||
|
||||
### 1.1.1
|
||||
|
||||
* Not stealing user focus when showing reminder
|
||||
* Adding 15 min as reminder interval
|
||||
|
||||
### 1.1.0
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
var reminderInterval: Int = 0 {
|
||||
didSet {
|
||||
fiveMinuteReminder.isChecked = reminderInterval == 5
|
||||
fifteenMinuteReminder.isChecked = reminderInterval == 15
|
||||
thirtyMinuteReminder.isChecked = reminderInterval == 30
|
||||
noReminder.isChecked = reminderInterval == 0
|
||||
if reminderInterval != oldValue {
|
||||
@@ -46,6 +47,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
@IBOutlet weak var fiveMinuteReminder: NSMenuItem!
|
||||
@IBOutlet weak var fifteenMinuteReminder: NSMenuItem!
|
||||
@IBOutlet weak var thirtyMinuteReminder: NSMenuItem!
|
||||
@IBOutlet weak var noReminder: NSMenuItem!
|
||||
|
||||
@@ -53,6 +55,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
reminderInterval = 5
|
||||
}
|
||||
|
||||
@IBAction func reminder15minTapped(_ sender: NSMenuItem) {
|
||||
reminderInterval = 15
|
||||
}
|
||||
|
||||
@IBAction func reminder30minTapped(_ sender: NSMenuItem) {
|
||||
reminderInterval = 30
|
||||
}
|
||||
|
||||
@@ -303,6 +303,12 @@
|
||||
<action selector="reminder5minTapped:" target="Voe-Tx-rLC" id="Wyl-dO-evG"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="15 min" id="31U-4c-cuC">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="reminder15minTapped:" target="Voe-Tx-rLC" id="0KX-yg-Vht"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="30 min" id="R4o-n2-Eq4">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
@@ -347,6 +353,7 @@
|
||||
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="In_Time" customModuleProvider="target">
|
||||
<connections>
|
||||
<outlet property="autoApply" destination="ho0-J6-R08" id="tBW-iT-pGt"/>
|
||||
<outlet property="fifteenMinuteReminder" destination="31U-4c-cuC" id="AFh-yY-wvS"/>
|
||||
<outlet property="fiveMinuteReminder" destination="OY7-WF-poV" id="tab-3t-lh3"/>
|
||||
<outlet property="noReminder" destination="LE2-aR-0XJ" id="73T-RG-g3y"/>
|
||||
<outlet property="thirtyMinuteReminder" destination="R4o-n2-Eq4" id="eOc-0v-Xgl"/>
|
||||
|
||||
Reference in New Issue
Block a user