Skip to content

Commit

Permalink
grab selected device on export
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmoose committed Feb 5, 2018
1 parent 76fd47a commit 4230380
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Open Backup Extractor/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ class ViewController: NSViewController, NSTableViewDelegate, NSTableViewDataSour

@IBAction func exportClicked(_ sender: Any)
{
Swift.print("Export clicked")
// grab the currently selected device, and request it to export all its files
let selectedDevice = self.devices[tableView.selectedRow]
Swift.print(devices)

Swift.print(selectedDevice.name)
}

@IBAction func chooseExportFolder(_ sender: NSButton)
Expand Down

0 comments on commit 4230380

Please sign in to comment.