Extend managed macOS client toward feature parity
.NET port / test (macos-latest) (push) Canceled after 0s
.NET port / test (ubuntu-24.04) (push) Canceled after 0s
.NET port / test (windows-latest) (push) Canceled after 0s
.NET port / apple-client (push) Canceled after 0s
.NET port / cpp-conformance (push) Canceled after 0s
.NET port / test (macos-latest) (push) Canceled after 0s
.NET port / test (ubuntu-24.04) (push) Canceled after 0s
.NET port / test (windows-latest) (push) Canceled after 0s
.NET port / apple-client (push) Canceled after 0s
.NET port / cpp-conformance (push) Canceled after 0s
This commit is contained in:
@@ -80,7 +80,8 @@ internal sealed class ConnectWindowController : NSWindowController
|
||||
host.StringValue = FormatEndpoint(profile.Host, profile.Port);
|
||||
authentication.SelectItem(profile.Authentication == ServerAuthentication.Guest ? 0 : 1);
|
||||
identity.StringValue = profile.Authentication == ServerAuthentication.Guest ? profile.Nickname ?? Environment.UserName : profile.Username ?? "";
|
||||
string? storedPassword = profile.Authentication == ServerAuthentication.Account ? keychain.Load(profile.Id) : null;
|
||||
string? storedPassword = profile.Authentication == ServerAuthentication.Account
|
||||
? keychain.Load(profile.Id) ?? keychain.LoadLegacy(profile.LegacyKeychainTag) : null;
|
||||
password.StringValue = storedPassword ?? "";
|
||||
rememberPassword.State = storedPassword is null ? NSCellStateValue.Off : NSCellStateValue.On;
|
||||
UpdateAuthentication();
|
||||
@@ -135,11 +136,12 @@ internal sealed class ConnectWindowController : NSWindowController
|
||||
{
|
||||
SetBusy(true); status.StringValue = "Connecting…";
|
||||
ServerProfile profile = ReadProfile();
|
||||
string pins = Path.Combine(SupportDirectory, "tofu.txt");
|
||||
string pins = Path.Combine(SupportDirectory, "tofu_pins.txt");
|
||||
client = new("VoiceCat macOS", "0.1.0", pins);
|
||||
await client.ConnectAsync(profile.Host, profile.Port, ConfirmIdentity);
|
||||
string accountPassword = password.StringValue;
|
||||
if (profile.Authentication == ServerAuthentication.Account && accountPassword.Length == 0) accountPassword = keychain.Load(profile.Id) ?? "";
|
||||
if (profile.Authentication == ServerAuthentication.Account && accountPassword.Length == 0)
|
||||
accountPassword = keychain.Load(profile.Id) ?? keychain.LoadLegacy(profile.LegacyKeychainTag) ?? "";
|
||||
if (profile.Authentication == ServerAuthentication.Account && accountPassword.Length == 0) throw new ArgumentException("Enter the account password.");
|
||||
password.StringValue = "";
|
||||
var result = profile.Authentication == ServerAuthentication.Guest
|
||||
|
||||
Reference in New Issue
Block a user