[gnome-shell/gnome-3-28] viewSelector: Cancel search on overview hidden
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-28] viewSelector: Cancel search on overview hidden
- Date: Wed, 12 Sep 2018 11:54:37 +0000 (UTC)
commit 20373ba64e7b7a21f72f115bb182865f05f09888
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date: Thu Aug 23 16:11:10 2018 +0200
viewSelector: Cancel search on overview hidden
Currently when the overview is hidden, any pending search is kept alive,
not only at remote search provider level (as per issue #183), but even
the shell providers proxies continue to get and process data. This happens
even if this is not needed anymore, while the UI reset is performed only
next time that the overview is shown (causing some more computation
presentation time).
In order to stop this to happen, when the overview is hidden, we have to
unset the search entry to an empty value as this would make SearchResults
to have empty terms list and that would make the proxies cancellable to
be triggered (without causing any further search to start).
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/205
js/ui/viewSelector.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 91bc222cf..c46afc505 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -311,6 +311,7 @@ var ViewSelector = new Lang.Class({
},
hide() {
+ this.reset();
this._workspacesDisplay.hide();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]