logging in with quick connect works now!

This commit is contained in:
random() 2025-05-15 21:05:32 -06:00
parent 70c2372535
commit 6235a69e43
10 changed files with 131 additions and 64 deletions

View file

@ -47,16 +47,15 @@ namespace JellyfinRPC
this.Close();
}
static string quickConnectLabel;
private async void ConfigForm_Load(object sender, EventArgs e)
private void ConfigForm_Load(object sender, EventArgs e)
{
textBox1.Text = ConfigManager.GetEntry("ServerURL");
textBox2.Text = ConfigManager.GetEntry("UserID");
maskedTextBox1.Text = ConfigManager.GetEntry("APIKey");
textBox4.Text = ConfigManager.GetEntry("ServerURL");
textBox5.Text = ConfigManager.GetEntry("ServerURL");
quickConnectLabel = await JellyfinAPI.SendQuickConnectRequest();
label9.Text = quickConnectLabel;
JellyfinAPI.formClosed = false;
}
private void label4_Click(object sender, EventArgs e)
@ -78,10 +77,10 @@ namespace JellyfinRPC
{
}
private void button4_Click(object sender, EventArgs e)
{
ConfigManager.SetEntry("ServerURL", textBox4.Text);
ConfigManager.SetEntry("ServerURL", textBox4.Text);
}
private void label6_Click(object sender, EventArgs e)
@ -119,5 +118,22 @@ namespace JellyfinRPC
{
toolTip1.Show("Format like https://mydomain.local.", textBox1, textBox1.PointToClient(textBox1.Location).X + 30, textBox1.PointToClient(textBox1.Location).Y + 90, 2000);
}
private async void button1_Click(object sender, EventArgs e)
{
button1.Hide();
await JellyfinAPI.AuthWithQuickConnect();
}
private void button2_Click(object sender, EventArgs e)
{
ConfigManager.SetEntry("ServerURL", textBox4.Text);
Close();
}
private void ConfigForm_FormClosing(object sender, FormClosingEventArgs e)
{
JellyfinAPI.formClosed = true;
}
}
}