Skip to content

Commit

Permalink
AuthViewController: username and password now depend on the State
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Jul 26, 2024
1 parent d41677e commit 20781d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Simplenote/AuthViewController+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ extension AuthViewController {

@objc
var usernameText: String {
usernameField.stringValue?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
state.username
}

@objc
var passwordText: String {
passwordField.stringValue?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
state.password
}

var authWindowController: AuthWindowController? {
Expand Down

0 comments on commit 20781d4

Please sign in to comment.