File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,15 @@ namespace lucidcode.LucidScribe.Plugin.BrainFlow
99{
1010 public partial class ConnectForm : Form
1111 {
12- public UserSettings Settings = new UserSettings ( ) { Board = "BrainFlow - Synthetic" } ;
13- private List < Board > boards = new List < Board > ( ) { new Board { Id = - 1 , Type = "BrainFlow" , Name = "Synthetic" } } ;
12+ public UserSettings Settings = new UserSettings ( ) {
13+ Board = "BrainFlow - Synthetic"
14+ } ;
15+ private List < Board > boards = new List < Board > ( ) {
16+ new Board {
17+ Id = - 1 ,
18+ Type = "BrainFlow" ,
19+ Name = "Synthetic" }
20+ } ;
1421 private string lucidScribePath = Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) + @"\lucidcode\Lucid Scribe\" ;
1522
1623 public ConnectForm ( )
@@ -57,16 +64,13 @@ private void LoadBoards()
5764
5865 private void LoadSettings ( )
5966 {
60- if ( ! File . Exists ( lucidScribePath + @"Plugins\BrainFlow.User.lsd" ) )
61- {
62- return ;
63- }
64-
65- var json = File . ReadAllText ( lucidScribePath + @"Plugins\BrainFlow.User.lsd" ) ;
66-
6767 try
6868 {
69- Settings = JsonConvert . DeserializeObject < UserSettings > ( json ) ;
69+ if ( File . Exists ( lucidScribePath + @"Plugins\BrainFlow.User.lsd" ) )
70+ {
71+ var json = File . ReadAllText ( lucidScribePath + @"Plugins\BrainFlow.User.lsd" ) ;
72+ Settings = JsonConvert . DeserializeObject < UserSettings > ( json ) ;
73+ }
7074 }
7175 catch ( Exception ex )
7276 {
You can’t perform that action at this time.
0 commit comments