Ignore:
Timestamp:
Mar 10, 2019 11:16:56 AM (16 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
30dbe24
Parents:
5d389c8
Message:

Mac OSX Launcher:

  • Fixed startup option so the launcher can start at OSX login/bootup.
  • Added I2P Browser to the list of "firefox" browsers to detect.
  • Changed hardcoded path lookup to native "registry" lookup for firefox application.
  • Made the advanced preferences table editable by the user.
  • Cleanup of old and/or unused code.
  • Bugfixes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/userinterface/preferences/PreferencesViewController+TableView.swift

    r5d389c8 re36a3b3  
    2626 
    2727  func tableViewDoubleClick(_ sender:AnyObject) {
    28    
     28    print("Double click")
    2929    // 1
    30     /*guard tableView.selectedRow >= 0,
    31      let item = Preferences.shared()[tableView.selectedRow] else {
    32      return
    33      }
    34      
     30    print(self.advPrefTableView.selectedRow)
     31    guard self.advPrefTableView.selectedRow >= 0,
     32      let item = Preferences.shared()[self.advPrefTableView.selectedRow] else {
     33        return
     34    }
     35    print(item.name)
     36     /*
    3537     if item.isFolder {
    3638     // 2
     
    4648  func tableView(_ tableView: NSTableView, sortDescriptorsDidChange oldDescriptors: [NSSortDescriptor]) {
    4749    // 1
    48     guard let sortDescriptor = tableView.sortDescriptors.first else {
     50    guard let sortDescriptor = self.advPrefTableView.sortDescriptors.first else {
    4951      return
    5052    }
     
    7577      cellIdentifier = CellIdentifiers.NameCell
    7678    } else if tableColumn == tableView.tableColumns[1] {
    77       text = "\(item.defaultValue!)"
     79      text = "\(item.defaultValue ?? "")"
    7880      cellIdentifier = CellIdentifiers.DefaultCell
    7981    } else if tableColumn == tableView.tableColumns[2] {
Note: See TracChangeset for help on using the changeset viewer.