diff options
author | bjarosze <bjarosze@users.noreply.github.com> | 2019-07-01 08:51:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 08:51:45 +0200 |
commit | 355180f14ed94eef80aa10e716e01df2df2c084b (patch) | |
tree | 9fb70a1eb29c90fc1e053306f742800fee11f26d | |
parent | c69aa27d0c0246db20aadcb2ae46a49d306e98df (diff) | |
parent | 9d28614c75e76805b808d4b93d77c8dc37bec066 (diff) |
Merge pull request #8 from andreittr/master
Do not force-enable BT on extension enable
-rw-r--r-- | extension.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extension.js b/extension.js index 0a9b9d2..403d956 100644 --- a/extension.js +++ b/extension.js @@ -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() { |