Commit 4ef0db25 authored by Jonas Dreßler's avatar Jonas Dreßler
Browse files

search: Remove prepareToEnterOverview

This causes us to unmap and destroy the search actors at very
inconvenient times, for example before we can initiate the app opening
animation, leading to JS errors and a broken animation.

Since the function doesn't actually seem needed anymore, remove it.
parent 6dc74083
Pipeline #465337 waiting for manual action with stages
......@@ -860,7 +860,6 @@ this.queue_relayout();
animateToOverview(state, callback) {
this._ignoreShowAppsButtonToggle = true;
this._searchController.prepareToEnterOverview();
this._workspacesDisplay.show();
this._emptyStateMaybeChanged(true);
......@@ -934,7 +933,6 @@ this.queue_relayout();
tracker.confirmSwipe(distance, points, progress, cancelProgress, wasEasingTo);
this._workspacesDisplay.show();
this._searchController.prepareToEnterOverview();
this._stateAdjustment.gestureInProgress = true;
}
......@@ -977,7 +975,6 @@ this.queue_relayout();
}
workspacesGestureBegin(tracker, monitor) {
this._searchController.prepareToEnterOverview();
this._workspacesDisplay.show();
this._emptyStateMaybeChanged(true);
......@@ -997,7 +994,6 @@ this.queue_relayout();
const { workspaceManager } = global;
const active = workspaceManager.get_active_workspace_index();
this._searchController.prepareToEnterOverview();
this._workspacesDisplay.show();
this._workspaceAdjustment.remove_transition('value');
......@@ -1028,7 +1024,6 @@ this.queue_relayout();
async runStartupAnimation(callback) {
this._ignoreShowAppsButtonToggle = true;
this._searchController.prepareToEnterOverview();
this._workspacesDisplay.show();
const initialState = Main.layoutManager.is_phone
......
......@@ -110,11 +110,6 @@ var SearchController = GObject.registerClass({
});
}
prepareToEnterOverview() {
this.reset();
this._setSearchActive(false);
}
vfunc_unmap() {
this.reset();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment