Skip to content

Commit

Permalink
Removed warning and settings for cookies as they are no longer needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
fireshaper committed Mar 13, 2022
1 parent 4accff2 commit a68a067
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 96 deletions.
10 changes: 5 additions & 5 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ private void Form1_Load(object sender, EventArgs e)
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

//Warn user to get UserAgent string and cookies on first run
if (Properties.Settings.Default.UserAgent == "")
{
MessageBox.Show("Thank you for using Omnibus! Before you can get started, you are going to have to gather a few things. " +
"Read the Setup information on github (https://github.com/fireshaper/Omnibus) for more information.");
}
//if (Properties.Settings.Default.UserAgent == "")
//{
// MessageBox.Show("Thank you for using Omnibus! Before you can get started, you are going to have to gather a few things. " +
// "Read the Setup information on github (https://github.com/fireshaper/Omnibus) for more information.");
//}

//Log in to the MEGA client Anonymously
//mClient.LoginAnonymous();
Expand Down
85 changes: 3 additions & 82 deletions Settings.Designer.cs

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

18 changes: 9 additions & 9 deletions Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ private void Settings_Load(object sender, EventArgs e)
cbLogs.Checked = false;
}

tbUserAgent.Text = Properties.Settings.Default.UserAgent;
tbCfduid.Text = Properties.Settings.Default.cfduid;
tbCfClearance.Text = Properties.Settings.Default.cf_clearance;
//tbUserAgent.Text = Properties.Settings.Default.UserAgent;
//tbCfduid.Text = Properties.Settings.Default.cfduid;
//tbCfClearance.Text = Properties.Settings.Default.cf_clearance;
}

private void btnSave_Click(object sender, EventArgs e)
Expand All @@ -44,14 +44,14 @@ private void btnSave_Click(object sender, EventArgs e)
Properties.Settings.Default.LogLocation = tbLLocation.Text;
Properties.Settings.Default.Save();

Properties.Settings.Default.UserAgent = tbUserAgent.Text;
Properties.Settings.Default.Save();
//Properties.Settings.Default.UserAgent = tbUserAgent.Text;
//Properties.Settings.Default.Save();

Properties.Settings.Default.cfduid = tbCfduid.Text;
Properties.Settings.Default.Save();
//Properties.Settings.Default.cfduid = tbCfduid.Text;
//Properties.Settings.Default.Save();

Properties.Settings.Default.cf_clearance = tbCfClearance.Text;
Properties.Settings.Default.Save();
//Properties.Settings.Default.cf_clearance = tbCfClearance.Text;
//Properties.Settings.Default.Save();

Properties.Settings.Default.Save();

Expand Down
Binary file modified obj/Release/Omnibus.csproj.GenerateResource.cache
Binary file not shown.
Binary file modified obj/Release/Omnibus.exe
Binary file not shown.
Binary file modified obj/Release/Omnibus.pdb
Binary file not shown.

0 comments on commit a68a067

Please sign in to comment.