Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuaNerin committed Mar 19, 2021
1 parent d0fdd76 commit dc7b004
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions StreamingRespirator/Core/Windows/LoginWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void ctlCookie_TextChanged(object sender, EventArgs e)
this.ctlCookie.Text = this.ctlCookie.Text.Replace("\n", "\r\n").Replace("\r\r\n", "\r\n");
}

private void ctlOkFile_Click(object sender, System.EventArgs e)
private void ctlOkFile_Click(object sender, EventArgs e)
{
this.ctlOkFile.Enabled = false;

Expand All @@ -52,7 +52,7 @@ private void ctlOkFile_Click(object sender, System.EventArgs e)
this.ctlOkFile.Enabled = true;
}

private void ctlOkText_Click(object sender, System.EventArgs e)
private void ctlOkText_Click(object sender, EventArgs e)
{
this.ctlOkText.Enabled = false;

Expand Down Expand Up @@ -104,8 +104,10 @@ private static async Task<string> ParseInner(Stream stream, string text)
stream.Seek(0, SeekOrigin.Begin);
tr = new StreamReader(stream);
}

tr = new StringReader(text);
else
{
tr = new StringReader(text);
}

using (tr)
{
Expand Down

0 comments on commit dc7b004

Please sign in to comment.