mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: replaced login view for Remote with web authorization mechanism
This commit is contained in:
@@ -50,7 +50,6 @@ class ApplicationSettings: NSStackView {
|
||||
|
||||
private let updateWindow: UpdateWindow = UpdateWindow()
|
||||
private let moduleSelector: ModuleSelectorView = ModuleSelectorView()
|
||||
private let loginWindow: LoginWindow = LoginWindow()
|
||||
|
||||
private var CPUeButton: NSButton?
|
||||
private var CPUpButton: NSButton?
|
||||
@@ -438,7 +437,7 @@ class ApplicationSettings: NSStackView {
|
||||
self.remoteView?.setRowVisibility(2, newState: true)
|
||||
return
|
||||
} else if state && !auth {
|
||||
self.loginWindow.open()
|
||||
Remote.shared.login()
|
||||
}
|
||||
self.remoteBtn?.state = .off
|
||||
self.remoteView?.setRowVisibility(1, newState: false)
|
||||
|
||||
Reference in New Issue
Block a user