Fixed bluetooth menu sorting... connected devices now properly show up top.
This commit is contained in:
@@ -29,7 +29,7 @@ const devices = (bluetooth, self) => {
|
||||
}
|
||||
|
||||
if (b.connected || b.paired) {
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return b.name - a.name;
|
||||
|
||||
Reference in New Issue
Block a user