summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2019-07-09 09:38:59 +0100
committerSimon McVittie <smcv@debian.org>2019-07-09 09:38:59 +0100
commite525ecbd520ce06b6c0bd0142f44ab9be6f6bdc2 (patch)
tree8afecb05a04b4af24bd2c30af05c95e321e69dd5
parente526ccb29e45372bd98e9f83c5fc7ca80f18d3e1 (diff)
parentfa34d5a55353e68c397b00499741ce162d67cb9a (diff)
Update upstream source from tag 'upstream/0_git20190701'
Update to upstream version '0~git20190701' with Debian dir 36894602a78441e5ea324351a5dda9284f39c027
-rw-r--r--extension.js9
-rw-r--r--metadata.json3
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"
]
}