Skip to content

Commit 796b9d1

Browse files
committed
Output error to bottom of GUI if user is not running GUI as admin
1 parent 6fe591f commit 796b9d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

OpenBCI_GUI/OpenBCI_GUI.pde

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,6 @@ void setup() {
378378
"If this error persists, contact the OpenBCI team for support.";
379379
return; // early exit
380380
}
381-
382-
if (!isAdminUser() || isElevationNeeded()) {
383-
println("OpenBCI_GUI: This application is not being run with Administrator access. This could limit the ability to connect to devices or read/write files.");
384-
}
385381

386382
directoryManager = new DirectoryManager();
387383

@@ -483,6 +479,10 @@ void delayedSetup() {
483479

484480
//Apply GUI-wide settings to front end at the end of setup
485481
guiSettings.applySettings();
482+
483+
if (!isAdminUser() || isElevationNeeded()) {
484+
outputError("OpenBCI_GUI: This application is not being run with Administrator access. This could limit the ability to connect to devices or read/write files.");
485+
}
486486
}
487487

488488
//====================== END-OF-SETUP ==========================//

0 commit comments

Comments
 (0)