Skip to content

Commit

Permalink
Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Feb 2, 2022
1 parent b2229b6 commit beecf24
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 18 deletions.
2 changes: 0 additions & 2 deletions Lain/CryLain.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Security;
using System.Security.Cryptography;
using System.Text;
Expand Down
7 changes: 1 addition & 6 deletions Lain/Forms/DuplicatesForm.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Lain
Expand All @@ -25,7 +20,7 @@ public DuplicatesForm(List<LainAccount> duplicates)
{
if (i >= 2)
{
if (duplicates[i-1].Password() != duplicates[i].Password())
if (duplicates[i - 1].Password() != duplicates[i].Password())
{
txtReport.AppendText(Environment.NewLine);
}
Expand Down
4 changes: 2 additions & 2 deletions Lain/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void Search()
_temp = string.Empty;
_temp2 = string.Empty;
}

internal void FixColors()
{
AccountView.DefaultCellStyle.SelectionBackColor = Color.FromArgb(65, 65, 65);
Expand Down Expand Up @@ -515,7 +515,7 @@ internal void SetFontSize()

private void MainForm_Load(object sender, EventArgs e)
{

}

private void btnAdd_Click(object sender, EventArgs e)
Expand Down
4 changes: 2 additions & 2 deletions Lain/Forms/OptionsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public OptionsForm(MainForm main)

LoadSettings();
Options.ApplyTheme(this);

txtTimer.ShortcutsEnabled = false;
}

Expand Down Expand Up @@ -93,7 +93,7 @@ private void LoadSettings()

private void OptionsForm_Load(object sender, EventArgs e)
{

}

private void btnOk_Click(object sender, EventArgs e)
Expand Down
1 change: 0 additions & 1 deletion Lain/Forms/WizardForm.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Windows.Forms;

namespace Lain
Expand Down
2 changes: 1 addition & 1 deletion Lain/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal static class Options
{
internal static Color ForegroundColor = Color.FromArgb(153, 102, 204);
internal static Color ForegroundAccentColor = Color.FromArgb(134, 89, 179);
internal static Color BackgroundColor = Color.FromArgb(20,20,20);
internal static Color BackgroundColor = Color.FromArgb(20, 20, 20);

internal readonly static string ThemeFlag = "themeable";
readonly static string _settingsFile = Path.Combine(Required.DataFolder, "Lain.json");
Expand Down
3 changes: 1 addition & 2 deletions Lain/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ internal static void RestartLain()

private static bool SanitizeSalt(string salt)
{
return true;
//return !string.IsNullOrEmpty(salt) && salt.Length >= 32;
return !string.IsNullOrEmpty(salt) && salt.Length >= 32;
}

internal static void SetMainForm(Form form)
Expand Down
4 changes: 2 additions & 2 deletions SALTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#### Salt should be at least 32 characters long. ####

#### Using command-line: ####
- Run Lain like this: Lain.exe /salt=CUSTOMSALT
- Lain.exe /salt=CUSTOMSALT

#### Using a file: ####
- Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.
- Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.

0 comments on commit beecf24

Please sign in to comment.