Skip to content

Commit

Permalink
fixed positioning, added logout button and also removed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
n1d3v committed Sep 9, 2024
1 parent f26b8c8 commit 9c6126a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Naticord/Forms/DM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void ScrollToBottom()
chatBox.Document.Window.ScrollTo(0, chatBox.Document.Body.ScrollRectangle.Bottom);
}
}
catch (Exception ex)
catch (Exception)
{
// who tf cares bro it works
}
Expand Down
3 changes: 0 additions & 3 deletions Naticord/Forms/Login.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ private void PerformLoginWithPass(string email, string password)
{
using (var webClient = new WebClient())
{
// Set proxy if provided
if (!string.IsNullOrEmpty(proxyAddress))
{
webClient.Proxy = new WebProxy(proxyAddress);
Expand Down Expand Up @@ -108,7 +107,6 @@ public void PerformLogin(string accessToken, bool isAutomated)

using (var webClient = new WebClient())
{
// Set proxy if provided
if (!string.IsNullOrEmpty(proxyAddress))
{
webClient.Proxy = new WebProxy(proxyAddress);
Expand Down Expand Up @@ -138,7 +136,6 @@ private void Perform2FALogin(string ticket, string code)
{
using (var webClient = new WebClient())
{
// Set proxy if provided
if (!string.IsNullOrEmpty(proxyAddress))
{
webClient.Proxy = new WebProxy(proxyAddress);
Expand Down
2 changes: 1 addition & 1 deletion Naticord/Forms/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public void ScrollToBottom()
chatBox.Document.Window.ScrollTo(0, chatBox.Document.Body.ScrollRectangle.Bottom);
}
}
catch (Exception ex)
catch (Exception)
{
// who tf cares bro it works
}
Expand Down
41 changes: 33 additions & 8 deletions Naticord/Forms/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Naticord/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@ private void shikanokobutton_Click(object sender, EventArgs e)
form.Show();
}

private void logoutButton_Click(object sender, EventArgs e)
{
Properties.Settings.Default.token = null;
Properties.Settings.Default.Save();

Environment.Exit(0);
}
}
}

0 comments on commit 9c6126a

Please sign in to comment.