♻️ refactor: reorganize windows and widgets in a modular way
plus, better code for bluetooth device pairing and connecting
This commit is contained in:
@@ -32,6 +32,11 @@ export class Bluetooth extends GObject.Object {
|
||||
createRoot((_) => {
|
||||
this.#scope = getScope();
|
||||
|
||||
if(this.astalBl.adapters.length > 0) {
|
||||
this.#isAvailable = true;
|
||||
this.notify("is-available");
|
||||
}
|
||||
|
||||
this.#connections.set(
|
||||
AstalBluetooth.get_default(),
|
||||
AstalBluetooth.get_default().connect("adapter-added", (self, adapter) => {
|
||||
|
||||
Reference in New Issue
Block a user