1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-11 04:28:58 +00:00

Enables start by double-click.

This commit is contained in:
Thomas Harte 2021-03-25 17:53:07 -04:00
parent 9f6bb325e6
commit e90e30e766
2 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,10 @@ class MachineDocument:
self.configureAs(selectedMachine) self.configureAs(selectedMachine)
} }
@IBAction func tableViewDoubleClick(_ sender: NSTableView?) {
createMachine(nil)
}
@IBAction func cancelCreateMachine(_ sender: NSButton?) { @IBAction func cancelCreateMachine(_ sender: NSButton?) {
close() close()
} }

View File

@ -687,6 +687,7 @@ Gw
</tableColumn> </tableColumn>
</tableColumns> </tableColumns>
<connections> <connections>
<action trigger="doubleAction" selector="tableViewDoubleClick:" target="-2" id="umS-by-Fc6"/>
<outlet property="dataSource" destination="192-Eb-Rpg" id="f5p-Gi-Ddh"/> <outlet property="dataSource" destination="192-Eb-Rpg" id="f5p-Gi-Ddh"/>
<outlet property="delegate" destination="192-Eb-Rpg" id="rOg-Hi-zwb"/> <outlet property="delegate" destination="192-Eb-Rpg" id="rOg-Hi-zwb"/>
</connections> </connections>