aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-18macos: TunnelsList: set allowsEmptySelection after making initial selectionJason A. Donenfeld1-1/+1
Otherwise we never get the event that the selection changed, so we don't wind up showing anything in the details pane. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-19macOS: ButtonedDetailViewController: Set min dimensionsRoopesh Chander1-0/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnels list: Double-click to activate / deactivateRoopesh Chander1-0/+13
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnels list: Don't allow empty selectionRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Integrate Ethernet and Wi-Fi controls in one rowRoopesh Chander1-27/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: View model should account for isActivateOnDemandEnabledRoopesh Chander2-3/+3
This is needed to correctly handle NETunnelProviderManager's isOnDemandEnabled property getting changed outside of the app. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Disable SSIDs field when adding a tunnelRoopesh Chander1-0/+1
It shouldn't be editable when the VPN prompt is shown. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Tunnel detail: List SSIDsRoopesh Chander1-1/+9
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Remove ActivateOnDemandSetting typeRoopesh Chander2-13/+6
The ActivateOnDemandOption type shall be used instead Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Tunnel detail: Show SSID infoRoopesh Chander1-3/+24
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Support SSIDs in on demand activationRoopesh Chander1-22/+29
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Infrastructure for supporting SSID-based rulesRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Simplify OS-specific code for interface type selectionRoopesh Chander1-3/+3
Previously, the enum values themselves were different for iOS and macOS. With this commit, the enum values are common, and only how they're handled is specific to iOS and macOS. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Localize tooltipsRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnel detail: Make the Activate button part of the list viewRoopesh Chander1-39/+39
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17ringlogger: support mpsc for singlefileJason A. Donenfeld1-6/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-17macOS: Tunnel detail: Activate / Deactivate is now a buttonRoopesh Chander1-35/+25
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17macOS: Tunnel detail: Show the status in the list viewRoopesh Chander1-8/+58
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-10macOS: Ability to remove multiple tunnels at a timeRoopesh Chander2-13/+38
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-10macOS: Generalize NoTunnelsDetailVC into a ButtonedDetailVCRoopesh Chander3-47/+54
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-24macOS: Tunnel edit: Disable user interaction when OS VPN prompt is shownRoopesh Chander1-0/+10
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-24macOS: Tunnel edit: s/populateTextFields()/populateFields()/g;Roopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-22macOS: When programmatically selecting a tunnel, also scroll if requiredRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-22macOS: Replace NSSegmentedControl with NSPopUpButton and NSButtonRoopesh Chander1-43/+50
Thereby avoiding the hacky way of showing the menus. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-21macOS: Fix removal of DNSes from AllowedIPs when DNS has changedRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-21macOS: On saving, update AllowedIPs with the current DNS serversRoopesh Chander1-1/+19
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-16macOS: Exclude private IPsRoopesh Chander1-0/+41
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15macOS: Tunnel detail: Set min width/heightRoopesh Chander1-0/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15macOS: Tunnels list: Use constant width for the table viewRoopesh Chander2-3/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15macOS: Show privacy notice on adding first tunnel0.0.20190207-3Jason A. Donenfeld1-7/+9
App store reviewers don't understand that this isn't a service. Revert this as soon as they come to their senses. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-12Preshared key field in the detail view should just say 'enabled'Roopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-10macOS: Change keyboard shortcut for importing to Cmd+ORoopesh Chander2-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-10macOS: Adapt to the new applyConfiguration APIRoopesh Chander1-34/+57
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-08Key: Constant time encodingJason A. Donenfeld1-6/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-06PrivateDataConfirmation: prompt with touch/face/pin/password ID for viewing/exporting keysJason A. Donenfeld2-20/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-05macOS: Select tunnel after adding it with 'Add empty tunnel'Roopesh Chander1-0/+13
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-05macOS: Ensure fields are updated on savingRoopesh Chander1-1/+3
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-05macOS: Apply runtime configuration by diff-ingRoopesh Chander1-15/+88
And apply the diff on the tableView as insertRows/removeRows. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-05macOS: Tunnel detail: Refactor calculation of tableViewModelRowsRoopesh Chander1-12/+30
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31Fix handling of 'PersistentKeepalive: every n seconds'Roopesh Chander1-1/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31Configure timers to fire even when tracking mouse eventsRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-31macOS: Tunnel detail: Reload runtime config every secondRoopesh Chander1-6/+24
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-24macOS: Select the active tunnel when showing the manage tunnels windowRoopesh Chander1-1/+14
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-24macOS: show runtime configuration in tunnel managerJason A. Donenfeld1-1/+19
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-23macOS: Tunnel detail: Fix updation of tunnelEditVCRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-22macOS: Tunnel edit: Handle deletion outside appRoopesh Chander1-1/+10
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-22macOS: Tunnel detail: Handle deletion outside appRoopesh Chander1-4/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-22macOS: Disable save button if the syntax highlighter detects any errorsRoopesh Chander1-2/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-22macOS: Fix crash when importing using NoTunnelsDetailVC's buttonRoopesh Chander1-1/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-21macOS: Tunnel edit: actually clean up error handlingJason A. Donenfeld1-4/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>