Skip to content

Commit e3f1b4e

Browse files
authored
Merge pull request #581 from retiutut/development
Dev 4.1.5-beta.2
2 parents 789e586 + d6a3870 commit e3f1b4e

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# v4.1.5
22
Use OpenBCIHub v2.0.9 please.
33

4+
## Beta 2
5+
6+
### Bug fixes
7+
* Only delete settings files if they are old/broken
8+
49
## Beta 1
510

611
### Bug fixes

OpenBCI_GUI/Info.plist.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<key>CFBundleShortVersionString</key>
2424
<string>4</string>
2525
<key>CFBundleVersion</key>
26-
<string>4.1.5-beta.1</string>
26+
<string>4.1.5-beta.2</string>
2727
<key>CFBundleSignature</key>
2828
<string>????</string>
2929
<key>NSHumanReadableCopyright</key>

OpenBCI_GUI/OpenBCI_GUI.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import com.sun.jna.Pointer;
5656
// Global Variables & Instances
5757
//------------------------------------------------------------------------
5858
//Used to check GUI version in TopNav.pde and displayed on the splash screen on startup
59-
String localGUIVersionString = "v4.1.5-beta.1";
59+
String localGUIVersionString = "v4.1.5-beta.2";
6060
String localGUIVersionDate = "August 2019";
6161
String guiLatestReleaseLocation = "https://github.com/OpenBCI/OpenBCI_GUI/releases/latest";
6262
Boolean guiVersionCheckHasOccured = false;

OpenBCI_GUI/SoftwareSettings.pde

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,12 @@ class SoftwareSettings {
383383
println("InitSettings: " + settingsFileToLoad + " not found or other error.");
384384
errorUserSettingsNotFound = true;
385385
File f = new File(settingsFileToLoad);
386-
if (f.exists()) {
387-
if (f.delete()) println("SoftwareSettings: Removed old/broken settings file.");
386+
//Only delete the settings file for other errors
387+
//Leave file if it's just a channelNumber error or DataSource mismatch
388+
if (!chanNumError && !dataSourceError) {
389+
if (f.exists()) {
390+
if (f.delete()) println("SoftwareSettings: Removed old/broken settings file.");
391+
}
388392
}
389393
}
390394
}
@@ -1564,7 +1568,8 @@ class SoftwareSettings {
15641568
err = settingsFileToLoad + " not found.";
15651569
}
15661570

1567-
if (err != null) {
1571+
//Only try to delete file for SettingsNotFound/Broken settings
1572+
if (err != null && (!chanNumError && !dataSourceError)) {
15681573
println("Load Settings Error: " + err);
15691574
File f = new File(settingsFileToLoad);
15701575
if (f.exists()) {

0 commit comments

Comments
 (0)