diff options
author | Simon McVittie <smcv@debian.org> | 2019-07-21 12:37:47 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2019-07-21 12:37:47 +0100 |
commit | 89d2c978d500c6228c3551df1f203c2034d3251e (patch) | |
tree | 44ba94bd3b09d75de94ce6e013957ded6985ea0a /debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch | |
parent | 09d14b6ae612674ba8c0ed3ba7e5a0887942f79c (diff) |
Update patch series
The patch from upstream PR 8 was in version 0~git20190701 as released
to Debian, but upstream release 8 was slightly older than that, so
apply it as a patch instead.
Diffstat (limited to 'debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch')
-rw-r--r-- | debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch b/debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch new file mode 100644 index 0000000..b04f412 --- /dev/null +++ b/debian/patches/Do-not-force-enable-BT-on-extension-enable-only-do-sync-i.patch @@ -0,0 +1,33 @@ +From: Andrei Tatar <6143482+andreittr@users.noreply.github.com> +Date: Sat, 15 Jun 2019 14:12:02 +0200 +Subject: Do not force-enable BT on extension enable & only do sync if BT on + +Forwarded: https://github.com/bjarosze/gnome-bluetooth-quick-connect/pull/8 +Applied-upstream: upstream, 9, commit:9d28614c75e76805b808d4b93d77c8dc37bec066 +--- + extension.js | 7 ++++--- + 1 file 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() { |