Skip to content

Commit a79eb99

Browse files
committed
改进刷新快捷键
1 parent e4f5ea7 commit a79eb99

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

12306ForMac/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>21</string>
22+
<string>23</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

12306ForMac/OrderViewControllers/OrderViewController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ class OrderViewController: BaseViewController{
157157
return true
158158
}
159159

160+
@IBAction func clickRefresh(_ sender:AnyObject?) {
161+
self.queryAllOrder()
162+
}
163+
160164
@IBAction func clickShareInfo(_ sender:AnyObject?) {
161165
let generalPasteboard = NSPasteboard.general()
162166
generalPasteboard.clearContents()

12306ForMac/TicketViewControllers/TicketQueryViewController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,10 @@ class TicketQueryViewController: BaseViewController {
739739
return true
740740
}
741741

742+
@IBAction func clickRefresh(_ sender:AnyObject?) {
743+
self.clickQueryTicketBtn(nil)
744+
}
745+
742746
@IBAction func clickShareInfo(_ sender:AnyObject?) {
743747
let generalPasteboard = NSPasteboard.general()
744748
generalPasteboard.clearContents()

12306ForMac/zh-Hans.lproj/MainMenu.xib

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="16A323" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11201" systemVersion="16B2555" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
44
<deployment identifier="macosx"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11201"/>
@@ -158,7 +158,7 @@
158158
<items>
159159
<menuItem title="刷新" keyEquivalent="r" id="dUM-Nj-mdp">
160160
<connections>
161-
<action selector="clickQueryTicketBtn:" target="-1" id="c5J-yo-6yI"/>
161+
<action selector="clickRefresh:" target="-1" id="eS6-zh-TLf"/>
162162
</connections>
163163
</menuItem>
164164
<menuItem title="筛选" keyEquivalent="f" id="k36-tW-xbE">

0 commit comments

Comments
 (0)