File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
2- using System . Collections . Generic ;
32using System . IO ;
4- using System . Runtime . Serialization . Formatters . Binary ;
53using System . Security ;
64using System . Security . Cryptography ;
75using System . Text ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
3- using System . ComponentModel ;
4- using System . Data ;
5- using System . Drawing ;
63using System . Linq ;
7- using System . Text ;
8- using System . Threading . Tasks ;
94using System . Windows . Forms ;
105
116namespace Lain
@@ -25,7 +20,7 @@ public DuplicatesForm(List<LainAccount> duplicates)
2520 {
2621 if ( i >= 2 )
2722 {
28- if ( duplicates [ i - 1 ] . Password ( ) != duplicates [ i ] . Password ( ) )
23+ if ( duplicates [ i - 1 ] . Password ( ) != duplicates [ i ] . Password ( ) )
2924 {
3025 txtReport . AppendText ( Environment . NewLine ) ;
3126 }
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ private void Search()
216216 _temp = string . Empty ;
217217 _temp2 = string . Empty ;
218218 }
219-
219+
220220 internal void FixColors ( )
221221 {
222222 AccountView . DefaultCellStyle . SelectionBackColor = Color . FromArgb ( 65 , 65 , 65 ) ;
@@ -515,7 +515,7 @@ internal void SetFontSize()
515515
516516 private void MainForm_Load ( object sender , EventArgs e )
517517 {
518-
518+
519519 }
520520
521521 private void btnAdd_Click ( object sender , EventArgs e )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public OptionsForm(MainForm main)
1818
1919 LoadSettings ( ) ;
2020 Options . ApplyTheme ( this ) ;
21-
21+
2222 txtTimer . ShortcutsEnabled = false ;
2323 }
2424
@@ -93,7 +93,7 @@ private void LoadSettings()
9393
9494 private void OptionsForm_Load ( object sender , EventArgs e )
9595 {
96-
96+
9797 }
9898
9999 private void btnOk_Click ( object sender , EventArgs e )
Original file line number Diff line number Diff line change 11using System ;
22using System . Drawing ;
33using System . IO ;
4- using System . IO . Compression ;
54using System . Windows . Forms ;
65
76namespace Lain
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ internal static class Options
2525 {
2626 internal static Color ForegroundColor = Color . FromArgb ( 153 , 102 , 204 ) ;
2727 internal static Color ForegroundAccentColor = Color . FromArgb ( 134 , 89 , 179 ) ;
28- internal static Color BackgroundColor = Color . FromArgb ( 20 , 20 , 20 ) ;
28+ internal static Color BackgroundColor = Color . FromArgb ( 20 , 20 , 20 ) ;
2929
3030 internal readonly static string ThemeFlag = "themeable" ;
3131 readonly static string _settingsFile = Path . Combine ( Required . DataFolder , "Lain.json" ) ;
Original file line number Diff line number Diff line change @@ -208,8 +208,7 @@ internal static void RestartLain()
208208
209209 private static bool SanitizeSalt ( string salt )
210210 {
211- return true ;
212- //return !string.IsNullOrEmpty(salt) && salt.Length >= 32;
211+ return ! string . IsNullOrEmpty ( salt ) && salt . Length >= 32 ;
213212 }
214213
215214 internal static void SetMainForm ( Form form )
Original file line number Diff line number Diff line change 55#### Salt should be at least 32 characters long. ####
66
77#### Using command-line: ####
8- - Run Lain like this: Lain.exe /salt=CUSTOMSALT
8+ - Lain.exe /salt=CUSTOMSALT
99
1010#### Using a file: ####
11- - Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.
11+ - Place a Lain.salt file in Data folder with your desired salt in it and run the app normally.
You can’t perform that action at this time.
0 commit comments