Skip to content

Commit 116da46

Browse files
committed
Use synthetic board as default
1 parent a2fd306 commit 116da46

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

BrainFlow/ConnectForm.cs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)