diff options
author | Simon McVittie <smcv@debian.org> | 2019-07-09 09:38:58 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-07-09 09:38:58 +0100 |
commit | fa34d5a55353e68c397b00499741ce162d67cb9a (patch) | |
tree | 9fb70a1eb29c90fc1e053306f742800fee11f26d | |
parent | 62b62a9edcef13e03c9894e293f9a93e6bb59ae2 (diff) | |
parent | 355180f14ed94eef80aa10e716e01df2df2c084b (diff) |
New upstream version 0~git20190701
-rw-r--r-- | extension.js | 9 | ||||
-rw-r--r-- | metadata.json | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/extension.js b/extension.js index 718c92d..403d956 100644 --- a/extension.js +++ b/extension.js @@ -76,7 +76,7 @@ class BluetoothDevice { _call_bluetoothctl(command) { let btctl_command = `echo -e "${command}\\n" | bluetoothctl`; - Util.spawn(['/bin/bash', '-c', btctl_command]); + Util.spawn(['/usr/bin/env', 'bash', '-c', btctl_command]); } } @@ -95,14 +95,15 @@ class BluetoothQuickConnect { if (isOpen && this._autoPowerOnEnabled()) this._proxy.BluetoothAirplaneMode = false; }); - + this._connectSignal(this._model, 'row-changed', () => this._sync()); this._connectSignal(this._model, 'row-deleted', () => this._sync()); this._connectSignal(this._model, 'row-inserted', () => this._sync()); - this._proxy.BluetoothAirplaneMode = false; this._idleMonitor(); - this._sync(); + if (!this._proxy.BluetoothAirplaneMode) { + this._sync(); + } } disable() { diff --git a/metadata.json b/metadata.json index 4508c6b..dea519a 100644 --- a/metadata.json +++ b/metadata.json @@ -8,6 +8,7 @@ "shell-version": [ "3.26.2", "3.28", - "3.30" + "3.30", + "3.32" ] } |