File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# v4.1.5
22Use 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
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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 " ;
6060String localGUIVersionDate = " August 2019" ;
6161String guiLatestReleaseLocation = " https://github.com/OpenBCI/OpenBCI_GUI/releases/latest" ;
6262Boolean guiVersionCheckHasOccured = false ;
Original file line number Diff line number Diff 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()) {
You can’t perform that action at this time.
0 commit comments