Skip to content

Commit

Permalink
set self.baseURL when clicking a discovered instance
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Apr 11, 2017
1 parent 42f1845 commit 036f323
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HomeAssistant/Views/SettingsViewController.swift
Expand Up @@ -413,6 +413,7 @@ class SettingsViewController: FormViewController {
cell.textLabel?.textColor = .black
cell.detailTextLabel?.text = detailTextLabel
}.onCellSelection({ _, _ in
self.baseURL = discoveryInfo.BaseURL
let urlRow: URLRow = self.form.rowBy(tag: "baseURL")!
urlRow.value = discoveryInfo.BaseURL
urlRow.disabled = true
Expand Down

0 comments on commit 036f323

Please sign in to comment.