Skip to content

Commit 6fe591f

Browse files
committed
Logical OR check for admin user on Windows
1 parent df543f5 commit 6fe591f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

OpenBCI_GUI/OpenBCI_GUI.pde

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,8 @@ void setup() {
379379
return; // early exit
380380
}
381381

382-
if (!isAdminUser()) {
383-
if (isElevationNeeded()) {
384-
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.");
385-
}
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.");
386384
}
387385

388386
directoryManager = new DirectoryManager();

0 commit comments

Comments
 (0)